[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

about grep

Posted on 2004-11-10
2
Medium Priority
?
274 Views
Last Modified: 2013-12-27
I want to grep lines which don't have a specific string.
how?

TIA.
0
Comment
Question by:iamjhkang
2 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 120 total points
ID: 12552336
use:

grep -v string filename

-v will output the lines without "string"

man grep
to learn more details
0
 
LVL 1

Author Comment

by:iamjhkang
ID: 12552514
Thanks a lot.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month18 days, 20 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question