- [seesea@bathome test]$ echo "aa" > atimetool_1.9.6.deb
- [seesea@bathome test]$ echo "aa" > atimetool_1.9.7.deb
- [seesea@bathome test]$ ls
- atimetool_1.9.6.deb atimetool_1.9.7.deb
- [seesea@bathome test]$ for f in *; do mkdir ${f/.deb/} && mv $f ${f/.deb/}; done;
- [seesea@bathome test]$ ls
- atimetool_1.9.6 atimetool_1.9.7
- [seesea@bathome test]$ ls *
- atimetool_1.9.6:
- atimetool_1.9.6.deb
-
- atimetool_1.9.7:
- atimetool_1.9.7.deb
- [seesea@bathome test]$ for d in *; do mv $d/* .; rm -rf $d; done;
- [seesea@bathome test]$ ls
- atimetool_1.9.6.deb atimetool_1.9.7.deb
复制代码
|