James wrote: > > hi, all! Hello,
> friday while trying to clean up a directory, i thought i > could bang out a quick-and-dirty perl script that would > let me achieve what i needed, to delete all text files in > a subdirectory that contain a specified string. i was able > to use the perl command unlink(filename) and grep manually, > but i couldn't seem to put them together in a script that > would do what i needed. perl -ne'/specified string/&&unlink($ARGV)&&close(ARGV)' /somedir/yourfiles* John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]