I want get [4 file name string] from user and pass these parameters to bash script. script should copy files in user home directory.
FYI: each file might be exist or not, might be one of them exist or four of them.
What type of condition should I use?
Here is my script
for var in "$@" ; do T1=$1 T2=$2 if [ $T1 = "File1" ]; then cp file1 /home/users else if [ $T2 = "File2" ]; then cp file2 /home/users .... fi fi done