您的位置:首页 > 运维架构 > Shell

shell 文件分类

2015-10-19 20:58 573 查看
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 \;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: