Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exclude file for grep

Status
Not open for further replies.

NattyP

MIS
Sep 1, 2001
45
JM
On Linux, I can issue the command

grep -v -f <filename>

to ignore many values from the grep output.

I keep getting an error on Solaris. Can anyone say how it can be done.
 
What's the error? I don't think the -f option is used for this in Solaris, but I may be wrong. Maybe you could write a loop to go though each file in turn and do your grep?

When one door closes another one bangs shut too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top