Re: Iterate through directories and search into files

2008-09-26 Thread Steve Bertrand
Steve Bertrand wrote: Hi everyone, I have a list of directories: - a..z and 2003..2008 ...inside of a single directory. Can someone advise what the shortest shell pipeline would be to search for two words (on two separate lines) within all files located only the alpha directories,

Re: Iterate through directories and search into files

2008-09-26 Thread Mel
On Friday 26 September 2008 14:22:27 Steve Bertrand wrote: Steve Bertrand wrote: Hi everyone, I have a list of directories: - a..z and 2003..2008 ...inside of a single directory. Can someone advise what the shortest shell pipeline would be to search for two words (on two

Iterate through directories and search into files

2008-09-26 Thread Steve Bertrand
Hi everyone, I have a list of directories: - a..z and 2003..2008 ...inside of a single directory. Can someone advise what the shortest shell pipeline would be to search for two words (on two separate lines) within all files located only the alpha directories, and then print the filename to

Re: Iterate through directories and search into files

2008-09-26 Thread Steve Bertrand
Mel wrote: On Friday 26 September 2008 14:22:27 Steve Bertrand wrote: Steve Bertrand wrote: Hi everyone, I have a list of directories: - a..z and 2003..2008 ...inside of a single directory. Can someone advise what the shortest shell pipeline would be to search for two words (on two