Sed one liners

find ./ -type f -exec sed -i 's/string1/string2/g' {} \;
grep -rli 'old-word' * | xargs -i@ sed -i 's/old-word/new-word/g' @

2018-12-28 13:37:25

Comments

Add a Comment

Login or Register to post a Comment.

Homepage