Guest User

Untitled

a guest
Nov 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. /DOG,29-APR-2015/d
  2.  
  3. DOG 29-APR-2015
  4. DOG 29-APR-2015
  5. DOG 30-APR-2015
  6. CAT 29-APR-2015
  7. CAT 29-APR-2015
  8.  
  9. sed -f sedcommands test1.txt > test2.txt
  10.  
  11. sed '/DOG/{/29-APR-2015/d}' test1
  12.  
  13. sed -e '/DOG/!b' -e '/29-APR-2015/!b' -e d file
  14.  
  15. sed '/DOG/{/29-APR-2015/d
  16. }' file
  17.  
  18. sed '/DOG/{/29-APR-2015/d;}' file
  19.  
  20. $ sed -e '/DOG[[:space:]]*29-APR-2015/d' test1.txt
  21. DOG 30-APR-2015
  22. CAT 29-APR-2015
  23. CAT 29-APR-2015
  24.  
  25. /DOG *29-APR-2015/d
Add Comment
Please, Sign In to add comment