$ grep -lR "oldString" -r | xargs sed -i 's/oldString/newString/g'
How to avoid LST.
If your oldString or newString contains character "/" (the delimiter), then Delimiter collision occurs, which cause to LST. To avoid that, select another delimiter such as # or ? in sed command.
examples:
sed -i 's#oldString#newString#g'
sed -i 's?oldString?newString?g'
No comments:
Post a Comment