On Thu, Feb 03, 2005 at 06:10:01PM +0000, MJ Ray wrote:
Brett wrote:
It should be relatively simple... parse the file for the function keyword at the beginning of a line, then select everything up to the first occurance of */, should be relatively simple.
Let's use sed, the stream editor!
sed -n -e '/^function /,/^ **//{;/^function /d;p;}' sourcefile.js
Mark, some times you remind me of just how useful you are to have around, I like it, very simple, very elegant solution.
/me tips his hat at MJR