1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh for t in $1* do if [ -e $t ] then for s in $t/Post/*.avi do if [ -e $s ] then echo $s; cp "$s" "`basename $t`_`basename $s`"; fi done fi done