Advertisement
Guest User

Untitled

a guest
Jun 14th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. null@null$ cat test.txt
  2. <!-- PAGE TAG -->
  3. DATA1
  4. DATA2
  5. DATA3
  6. DATA4
  7. DATA5
  8. DATA6
  9. <div id="DATA"></div>
  10. DATA8
  11. DATA9
  12. <!-- PAGE TAG -->
  13. null@null$ sed '/<!-- PAGE TAG -->/,/<!-- PAGE TAG -->/d' test.txt
  14. null@null$ cat test.txt
  15. <!-- PAGE TAG -->
  16. DATA1
  17. DATA2
  18. DATA3
  19. DATA4
  20. DATA5
  21. DATA6
  22. <div id="DATA"></div>
  23. DATA8
  24. DATA9
  25. <!-- PAGE TAG -->
  26. null@null$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement