Wednesday, 9 December 2015

Linux: Search files and replace x with y

This command will check all files and folders within the current directory and replace x with y

sudo find ./ -type f -exec sed -i -e 's/x/y/g' {} \;

No comments:

Post a Comment