• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

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.
0
pdadddino
Asked:
pdadddino
1 Solution
 
tfewsterCommented:
grep -v "yourstring"  yourfile > new_file
0
 
pdadddinoAuthor Commented:
perfect...thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now