Maybe something like this:
sed 's/ab/~~/g; s/bc/ab/g; s/~~/bc/g'
from : https://stackoverflow.com/questions/26568952/how-to-replace-multiple-patterns-at-once-with-sed
In case if you want to check whether file does not contain a specific string, you can do it as follows. if ! grep -q SomeString "$File...
No comments:
Post a Comment