How to recursively replace a string in all files in a directory in Linux

egrep apples * -lRZ | xargs -0 -l sed -i -e 's/apples/bananas/g'
This entry was posted in Uncategorized by admin. Bookmark the permalink.

Comments are closed.