Mike Bird wrote:
On Saturday 25 August 2007 14:34, Johannes Tax wrote:On [Sat, 25.08.2007 13:15], Mike Bird wrote:grep -l 'a_certain_function' $(find . -name '*.c')That's exactly what I need. It also shows that I have to investigate the grep command a little bit further ...BTW, unlike backquote, dollar-paren nests. If you need
Just to set the record straight, backquotes can be nested, it's just overly complex and messy to do:
eval emacs \`grep -l 'a_certain_function' `find . -name '*.c'`\`So, yes, use the $(...$(...$(...))) form. Try to get that right (3 levels) with backquotes and eval!
However, if you use an older shell that doesn't support the $(...) structure, you may be forced into using backquotes. Since the added features that include this syntax add quite a bit to the size of the shell, minimalist systems, toolsets, etc. may have shells that don't have it, for space reasons.
to edit those files with e.g. emacs you can: emacs $(grep -l 'a_certain_function' $(find . -name '*.c')) --Mike Bird
-- Bob McGowan
smime.p7s
Description: S/MIME Cryptographic Signature