|
Prev: ######THEY DO DIFFERENT THINGS TO GET IT#############
Next: Brand Watches Movado Women's Kara Two Tone Watch 0605248 Discount, Swiss, Fake
From: cmk128 on 24 Apr 2008 06:22 Hi Is there a grep command for programmer? for example, i want to grep the declaration of a specific function. thanks from Peter (cmk128(a)hotmail.com)
From: Magda Muskala on 24 Apr 2008 11:29 hi On Apr 24, 12:22 pm, cmk...(a)hotmail.com wrote: > Is there a grep command for programmer? for example, i want to grep > the declaration of a specific function. well, i am not sure, if there is any grep for programmer, but i think, you can reach the goal with grep & regexp. for which language you would like to grep the declarations? greetings magda
From: Dances With Crows on 24 Apr 2008 12:20 Magda Muskala staggered into the Black Sun and said: > On Apr 24, 12:22 pm, cmk...(a)hotmail.com wrote: >> Is there a grep command for [programmers]? For example, I want to >> grep [for] the declaration of a specific function. > well, i am not sure, if there is any grep for programmer, but i think, > you can reach the goal with grep & regexp. for which language you > would like to grep the declarations? The OP should do his distro's equivalent of "emerge --search ctags" to find the standard package for doing this. exuberant-ctags can do this for a bunch of commonly-used languages and a few that I've never heard of. vim and emacs can use tags files to jump directly to a variable's definition within the editor, at least. -- Due to inflation, your 40 acres and a mule have now been reduced to 400 square feet and a guinea pig. My blog and resume: http://crow202.dyndns.org:8080/wordpress/ Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
From: The Natural Philosopher on 24 Apr 2008 13:16
Magda Muskala wrote: > hi > > On Apr 24, 12:22 pm, cmk...(a)hotmail.com wrote: > >> Is there a grep command for programmer? for example, i want to grep >> the declaration of a specific function. > > well, i am not sure, if there is any grep for programmer, but i think, > you can reach the goal with grep & regexp. for which language you > would like to grep the declarations? > > greetings magda largely a grep "^functionName(" will find a declaration if its the first thing on a line. |