Subject: Re: quickie UNIX command
From: cdowns (cdowns@skillsoft.com)
Date: Thu May 17 2001 - 11:06:32 MDT
Gawain Reifsnyder wrote:
> I want to remove files in a directory on my YDL machine that contain
> a certain string. I think I'm getting close but no cigar... I'm
> thinking it's something like:
>
> rm | grep -l 'search string' *
>
> Any hints?
cat <filename> | grep -v "string_name" >> <newfile>
and it will be stripped and a new file created .
-D
-- ------------------------------ Christopher M Downs Network Security Administrator Skillsoft Corporation cdowns@skillsoft.com "Micro$oft typed backwards spells "c:\duh /?" ------------------------------
This archive was generated by hypermail 2a24 : Thu May 17 2001 - 10:12:31 MDT