Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x0152532@unx0152532:~$ cat theFile
- NoDisplay=true
- hello world
- hey I'm here
- NoDisplay=true another string here
- last line
- x0152532@unx0152532:~$ (echo "g/NoDisplay=true/d"; echo 'wq') | ex -s theFile
- x0152532@unx0152532:~$ cat theFile
- hello world
- hey I'm here
- last line
- x0152532@unx0152532:~$
Advertisement
Add Comment
Please, Sign In to add comment