You might want to check for the '-r' option in your system's grep command. On my Linux system and under Cygwin I can do something like
grep -r 'search string' ./* or the '-d recurse' option should do the same thing. Good luck, Peter C. -----Original Message----- From: Thomas S. Dixon [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 5:36 AM To: [EMAIL PROTECTED] Subject: command-line way to search contents of files Greetings gurus, I've worked with perl somewhat for the past year, but never via the command line. I'd like to know if there's a short command-line way to search a given directory (recursively) for files containing a certain text string. I would think this would be some combination of a loop and grep, but I'm not quite sure where to start. This is perl 5.6.0 running on a linux system. Thanks, Tommy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]