User Tools

Site Tools


tips:linux:replacefiles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tips:linux:replacefiles [2009/06/08 08:29]
erik
tips:linux:replacefiles [2020/05/29 21:54] (current)
erik
Line 5: Line 5:
 <code> <code>
 for fl in *.txt; do for fl in *.txt; do
-mv $fl $fl.old +  mv $fl $fl.old 
-sed 's/find/replace/g' $fl.old > $fl+  sed 's/find/replace/g' $fl.old > $fl
 done done
 </code> </code>
tips/linux/replacefiles.txt · Last modified: 2020/05/29 21:54 by erik