Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ## make a copy of the original file that we can modify
  2. cp original_data outfile
  3.  
  4. ## loop over a file of regexs, applying each to our output
  5. while read rx; do
  6. grep -v $rx outfile > outfile.tmp
  7. mv outfile.tmp outfile
  8. done < regex_file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement