Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. world,11
  2.  
  3. hello welcome to the ("12345,67")
  4.  
  5. replacement=`cat replacement.txt`
  6. content=`cat content.txt`
  7. pattern="pattern"
  8. echo "${content//$pattern/$replacement}" # all strings matching will be replaced with $replacement
  9. echo "${content/$pattern/$replacement}" # the first string matching the pattern will be replaced
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement