Saravana's Musings
Saturday, June 12, 2010
script to replace string
#!/bin/bash
echo $PWD
for file in `grep -l "FNDesc" $PWD/*`; do
sed 's/FNDesc/RXDesc/g' $file >/tmp/$$ && mv /tmp/$$ $file
done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment