I try to copy some files to given input.
Firstly I give an input in terminal like "*.txt"
.Then I have to send another .sh file
read -p "Write input " input6
bash ./prog.sh -R $input6
But ./prog.sh work wrong.,It gives an error :
cp: cannot stat '"*.txt"': No such file or directory"
If I write like this :
bash ./prog.sh -R "*.txt"
works true.Files are copied.
What is the problem ? What do you think ? Any suggestions?
I don't understand what is the different $input6
and "*.txt"
?
I have to use menu.In order to run my program I send the commands to another .sh file.
By the way, my teacher wants to enter input with double quote like "*.txt"