ok, here's my cool little script for replacing versions of my .jar files in all config files and scripts:
Code:
#!/bin/sh
SCRIPTS=`find . -name "*.*" -exec grep -l "$1" {} \;`
for file in $SCRIPTS
do
echo "Editing $file...";
(cat $file; echo '') | sed 's/'$1'/'$2'/g' > ${file}.tmp;
sleep 1;
mv ${file}.tmp $file;
done;
oh, and by the way, here's a link to my unix shell scripting tutorial if anyone cares to check it out:
http://www.dreamsyssoft.com/unix-she...g/tutorial.php