bin sh postfix search_mask cur_path pwd for in find -name search_mask

1
2
3
4
5
6
7
8
9
#!/bin/sh
postfix=$2
search_mask=$1
#cur_path=`pwd`
for f in `find . -name \*${search_mask}` ; do
cp $f `basename $f ${postfix}`
done