I am beginner in shell script i am trying to copy multiple files. I want manually give the input how i change my code
我是shell脚本的初学者我正在尝试复制多个文件。我想手动输入如何更改我的代码
echo "Please Enter File Name"
read b
cp -l ~/Downloads/"{$b,$b,$b,$b,$b}" ~/myProj/image
1 个解决方案
#1
Not sure of what you mean by "I want manually give the input how i change my code." But try this :
不确定你的意思是“我想手动输入我如何更改代码的输入。”但试试这个:
echo "Please Enter File Name"
read b
for i in $b
do
cp -l ~/Downloads/$i ~/myProj/image
done
#1
Not sure of what you mean by "I want manually give the input how i change my code." But try this :
不确定你的意思是“我想手动输入我如何更改代码的输入。”但试试这个:
echo "Please Enter File Name"
read b
for i in $b
do
cp -l ~/Downloads/$i ~/myProj/image
done