1 2 3 4 5 6 7 8
#!/bin/sh for i in *.gz *.bz2 *.zip *.md5; do d=`echo $i | sed 's/\.[tz][ai][rp]/-6.5.5&/'` echo "Copying $i to $d" cp -ip $i /export/www/download.dre/previous_versions/$d done