Help with Grep
Rodent of Unusual Size
Ken.Coar at Golux.Com
Thu Feb 13 16:01:24 EST 2003
Ed Lawson wrote:
> My son who is working at an unamed, but major health care institution in
> boston has a desparate
> need to extract all instances of the following four text strings in a 6
> meg file:
>
> po=
> to=
> delay=
> dsn=4
>
> It is an urgent issue as the SQL slammer just got into their internal
> net and the instituion is down hard.
>
> He was thinking he should be able to use grep, but not sure how to do it
> and I can't come up with a quick answer at work. Can anyone provide a
> quick script/command to do this. I assume perl would be another option.
what do you mean 'extract'? extract the lines that contain them?
is it a text file? remove lines containing those from the file?
--
#ken P-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, opinionist http://Apache-Server.Com/
"Millennium hand and shrimp!"
More information about the gnhlug-discuss
mailing list