fairuz

Untitled

May 11th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. x0152532@unx0152532:~$ cat theFile
  2. NoDisplay=true
  3. hello world
  4. hey I'm here
  5. NoDisplay=true another string here
  6. last line
  7. x0152532@unx0152532:~$ (echo "g/NoDisplay=true/d"; echo 'wq') | ex -s theFile
  8. x0152532@unx0152532:~$ cat theFile
  9. hello world
  10. hey I'm here
  11. last line
  12. x0152532@unx0152532:~$
Advertisement
Add Comment
Please, Sign In to add comment