Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $cat test.txt
  2. a(bc)
  3. a(l)
  4. a(d)
  5. a(loke)
  6. a(babab)
  7. a(h323)
  8. $
  9.  
  10. $cat test.txt
  11. a(bc_mynewstring)
  12. a(l_mynewstring)
  13. a(d_mynewstring)
  14. a(loke_mynewstring)
  15. a(babab_mynewstring)
  16. a(h323_mynewstring)
  17. $
  18.  
  19. sed -i 's/a(.*)/a(.*_mynewstring)/g' test.txt
  20.  
  21. cat test.txt
  22. a(.*_mynewstring)
  23. a(.*_mynewstring)
  24. a(.*_mynewstring)
  25. a(.*_mynewstring)
  26. a(.*_mynewstring)
  27. a(.*_mynewstring)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement