Sunday, April 1, 2012

Unix command to find and replace a given string in all directory files


find /my/directory/name -type f -exec sed -i 's/oldString/newString/' {} \;

No comments:

Post a Comment