Sphoot - A Marathi Word for "IMPROMPTU"
Change a pattern in all the files in one go!
#!/bin/sh
for file in $(grep -il "devdb" *.sql)
do
sed -e "s/devdb/testdb/g" $file > /tmp/tempfile.tmp
mv /tmp/tempfile.tmp $file
done
Post a Comment
No comments:
Post a Comment