将path1目录下的文件复制到当前目录中
#!/bin/bash
read -p "Input the path need to copy: " path1
path2=`pwd`
for f in `ls $path1`
do
cp -r $path1/$f $path2
done
将path1目录下的文件复制到当前目录中
#!/bin/bash
read -p "Input the path need to copy: " path1
path2=`pwd`
for f in `ls $path1`
do
cp -r $path1/$f $path2
done