Sed commands
Jump to navigation
Jump to search
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
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