Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- null@null$ cat test.txt
- <!-- PAGE TAG -->
- DATA1
- DATA2
- DATA3
- DATA4
- DATA5
- DATA6
- <div id="DATA"></div>
- DATA8
- DATA9
- <!-- PAGE TAG -->
- null@null$ sed '/<!-- PAGE TAG -->/,/<!-- PAGE TAG -->/d' test.txt
- null@null$ cat test.txt
- <!-- PAGE TAG -->
- DATA1
- DATA2
- DATA3
- DATA4
- DATA5
- DATA6
- <div id="DATA"></div>
- DATA8
- DATA9
- <!-- PAGE TAG -->
- null@null$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement