Home     About author     Author CV     Contact us

Nice Linux commands

Search in file that have certain names or extensions:
find ./ -name "*.txt" -exec sed -i 's/string1/string2/g' {} \;

Search in ALL files:
find ./ -type f -exec sed -i 's/string1/string2/g' {} \;