curl -O -s https://www.labs.cs.uregina.ca/330/Shell/Lab11.zip unzip Lab11.zip
Your task is to create a bash shell script that will create a backup directory in your current directory. The name of the directory must not exist already and will be sent as a command line argument. You will create the directory and copy all the .h and .c files from your current directory into it.
An algorithm is provided below
> ./backup.sh hello there Usage: ./backup.sh dirName > ./backup.sh Usage: ./backup.sh dirName > ./backup.sh NewDir cp: cannot stat '*.c': No such file or directory cp: cannot stat '*.h': No such file or directory > touch a.c b.c a.h > ./backup.sh NewDir Directory NewDir already exists...Please use a different name > ./backup.sh NewDir2 > ls NewDir2 a.c a.h b.c
Submit 2 files to URCourses: