A Trip through Linux
by Ken Sipe
Sunday, February 14, 2016
Sed string substitution over multiple files
find ./ -type f -exec sed -i 's/string1/string2/g' {} \;
or using xargs...
find ./ -type f -print0 | xargs -0 sed -i 's/string1/string2/g'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment