shell 文件分类
2015-10-19 20:58
621 查看
echo "please input the search path:"
read path
echo "please input the storage path:"
read path2
if [$path == ""];
then path="/home/allen/mywork"
fi
if [$path2 == ""];
then path2="/home/allen/test"
fi
mkdir $path2/bin
mkdir $path2/lib
mkdir $path2/src
mkdir $path2/inc
find $path -name "*.exe" -exec cp {} $path2/lib \;
find $path -name "lib*.*" -exec cp {} $path2/lib \;
find $path -name "*[.c|.ch|.cpp|.cc]" -exec cp {} $path2/src \;
find $path -name "*[.h|.hxx]" -exec cp {} $path2/inc \;
read path
echo "please input the storage path:"
read path2
if [$path == ""];
then path="/home/allen/mywork"
fi
if [$path2 == ""];
then path2="/home/allen/test"
fi
mkdir $path2/bin
mkdir $path2/lib
mkdir $path2/src
mkdir $path2/inc
find $path -name "*.exe" -exec cp {} $path2/lib \;
find $path -name "lib*.*" -exec cp {} $path2/lib \;
find $path -name "*[.c|.ch|.cpp|.cc]" -exec cp {} $path2/src \;
find $path -name "*[.h|.hxx]" -exec cp {} $path2/inc \;
相关文章推荐
- shell脚本编程:条件判断if语句使用小结
- SQL Server如何启用xp_cmdshell组件
- shell - 4
- shell技巧(不断整理)
- bash FAQ
- read name 和 read 在 Bash 中的区别
- HBase Shell 操作命令&&使用Sqoop将数据导入HBase
- 一句shell命令搞定代码行数统计
- 如何通过PowerShell将一个Site Collection从Default Web Application中转移到另一个Web Application中?
- 带GUI界面的重置域账号密码PowerShell脚本
- shell常识总结
- 如何通过PowerShell将一个Site Collection从Default Content Database中转移到其他的Content Database中?
- MFC接收外部程序执行的shellexecute中传递的参数来执行不同操作
- shell date命令使用
- shell 判断文件是否存在
- 如何用PowerShell还原.bak的Site Collection级别备份数据?
- shell脚本实践
- linux下利用shell脚本随机生成密码
- shell学习资料
- 如何用PowerShell 修改Site Collection的URL?