[ale] Shell scripting

matty91 at bellsouth.net matty91 at bellsouth.net
Sat Feb 8 15:19:38 EST 2003


You may choose to do egrep -v "keyword" file > new_file to avoid the
shell forking another process.

- Ryan

On Sat, 8 Feb 2003, Jan Mason wrote:

> cat file_name.txt | egrep -v "keyword" > new_file_name.txt
>
> Jim wrote:
> > On Saturday 08 February 2003 01:48 pm, Thomas Holmquist wrote:
> >
> >>Im writing a shell script that will put unique lines of text in a file
> >>
> >>then I want to be able to delete the lines of text that contain a certan
> >>keyword, how would I do this?
> >
> >
> > Haven't used it in a while, but I believe awk would handle this with the
> > fewest lines and greatest efficiency.
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> >
> >
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list