最近改代码,需要创建好多类似的文件夹和文件,还要加到svn里面,很烦人;于是,我就学了学bash的命令,哈哈。很好很强大
base=$PWD
os=(redhat aix suse)
for i in ${os[*]}; do
mkdir ${base}_os_${i}
cp *.pl ${base}_os_${i}
svn add ${base}_os_${i}
done
RECORDING MY FANTASY
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment