Support and General Use > Recording
Recording Enhancements Pack
Rincewind:
This is the grep command my Emacs uses for recursive grepping (M-x rgrep):
--- Quote ---find . \( -path \*/CVS -o -path \*/.svn -o -path \*/\{arch\} -o -path \*/.hg -o -path \*/_darcs -o -path \*/.git -o -path \*/.bzr \) -prune -o -type f \( -name \*.\[ch\] \) -print0 | xargs -0 -e grep -i -nH -e "the search string"
--- End quote ---
this command has the advantage that it doesn't find the files inside the .svn directories and it is limited to *.[ch] files. It displays the line numbers, too.
GodEater:
...and the award for best "Sledgehammer to crack a nut approach" goes to .... ;)
Rincewind:
--- Quote from: GodEater on June 19, 2007, 04:27:23 PM ---...and the award for best "Sledgehammer to crack a nut approach" goes to .... ;)
--- End quote ---
well, the only thing I really type is the search string, everything else is handled automatically. With this I can click on a result and the file is opened at the right place for me.
It took my quite some time with the man page for 'grep' and 'find' to analyze how it works ;D
fed:
Thanks! Â
This is going to help me a lot!
I actually prefer the really long one. It gives better results.
fed:
Now I'm trying to put something (text or graphics) on the recording screen while the unit is recording (to make it obvious to me), and to take it away when it is not recording. Any idea how I would tackle this?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version