Monthly Archives: December 2014

sed command to replace string in all sub folders text files

This will replace all occurrences of "text1" into "text2" of all text files within all multiple sub level folders in current folder. $ find ./ -type f | xargs sed -i ‘s/text1/text2/g’ f meant for text files -i option for … Continue reading

Posted in Uncategorized | 1 Comment