备份
[root@localhost shell]# cat bakjar.sh
#!/bin/bash
now_time=`date +%Y%m%d`
cd /workspace/tools/
mkdir -p ${now_time}bak
mv *$1*.jar ${now_time}bak/
备份
[root@localhost shell]# cat bakjar.sh
#!/bin/bash
now_time=`date +%Y%m%d`
cd /workspace/tools/
mkdir -p ${now_time}bak
mv *$1*.jar ${now_time}bak/