Difference between revisions of "Sed commands"
From Peter Pap's Technowiki
(Created page with " == Find and Replace == for file in `find . -type f | awk -F/ ' { print $2 }'` do sed -e 's/find/replace/g' < $file > /tmp/$file; mv /tmp/$file $file done") |
(No difference)
|
Latest revision as of 06:12, 5 July 2011
Find and Replace
for file in `find . -type f | awk -F/ ' { print $2 }'` do sed -e 's/find/replace/g' < $file > /tmp/$file; mv /tmp/$file $file done