2008/10/26 Brian <[EMAIL PROTECTED]>: > Hello > I would like to do a recursive search of directories and files, checking to > see if a file contains a certain string. > <STDIN> will be a string containing whitespace(s). > As soon as I hit enter, I would like dummy.txt to be time stamped and again > at termination. > I'm playing about with 9.85GB (2.57 million files). > > If possible, full pathnames of the files containing the string to go to > dummy.txt
use a "find" command simply: find /path -type f -exec grep -H "string" {} \; -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/