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 \;