I want to create a extremely simple bash script, (my_copy.sh), that reads arbitrary number input files, a destination directory, and finally asks for confirmation if you want to perform the copy.
Example usage: ./my_copy.sh
Type in the file names to copy:
file1 file2 Anna Kurt Arne
Type in the directory to copy to:
dir_3
Are you sure you want to copy the files:
Anna
Kurt
Arne
to the directory dir_3 (y/n)?
If the destination directory does not exists it should be created by the script.
and my next question:
I want the * character to do a simple ls command. So if I type ./my_copy *
, in the command line it should list all files in my directory.