Difference between revisions of "Sed commands"

From Peter Pap's Technowiki
Jump to: navigation, search
(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