Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cat test.txt
- a(bc)
- a(l)
- a(d)
- a(loke)
- a(babab)
- a(h323)
- $
- $cat test.txt
- a(bc_mynewstring)
- a(l_mynewstring)
- a(d_mynewstring)
- a(loke_mynewstring)
- a(babab_mynewstring)
- a(h323_mynewstring)
- $
- sed -i 's/a(.*)/a(.*_mynewstring)/g' test.txt
- cat test.txt
- a(.*_mynewstring)
- a(.*_mynewstring)
- a(.*_mynewstring)
- a(.*_mynewstring)
- a(.*_mynewstring)
- a(.*_mynewstring)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement