Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- world,11
- hello welcome to the ("12345,67")
- replacement=`cat replacement.txt`
- content=`cat content.txt`
- pattern="pattern"
- echo "${content//$pattern/$replacement}" # all strings matching will be replaced with $replacement
- echo "${content/$pattern/$replacement}" # the first string matching the pattern will be replaced
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement