want to bypass line it string is found using awk

this will happen inside a korn shell script. thinking 'awk' is the best tool but am open to suggestions. Am looking for a string in a data file with about 100 lines. If the string is found it means the line is no good and i want to skip printing this line. If string is NOT found, i want to print the whole line. So i want to create a new file without the bad lines.
pdadddinoAsked:
Who is Participating?
 
tfewsterConnect With a Mentor Commented:
grep -v "yourstring"  yourfile > new_file
0
 
pdadddinoAuthor Commented:
perfect...thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.