Date: Fri, 26 Sep 2008 08:13:53 -0400 From: Steve Bertrand <steve@ibctech.ca> To: "freebsd-questions@freebsd.org Questions -" <freebsd-questions@freebsd.org> Subject: Iterate through directories and search into files Message-ID: <48DCD201.2000402@ibctech.ca>
next in thread | raw e-mail | index | archive | help
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 STDOUT? I know this is very efficient, but since I don't need to do this often, it will be easier than maintaining but yet another Perl script. Thanks, Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48DCD201.2000402>