brian54321uk schreef: > I would like to test a folder full of files, and if a file contains > abc123blue or xyz357green then that file is to be deleted. > What would be the best way of achieving this please?
I would use `grep -l` to get the list of filenames, and rm to unlink them. No Perl involved. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/