I need help in writing these scripts :
a ls -al on the files within the user's home directory and save it to a file
called ls.dat within your ~ directory
the tree information for the /home directory in a file called tree.dat within
a new directory in your home directory called "backups"
the files you just created to the new directory
the files that you just moved to "ls.bu" and "tree.bu".
the user for their name
a file called "daily.dat" within the home directory
the user for a line of text that the system should save to the file
to the file the line of text entered by the user
the user for a second line of text that the system should save to the file
at the end of the file the line of text entered by the user
a copy of the file in the directory "backups" within the home
directory, renaming the file daily.bu.
the user for a file's name
the file exists, ask them if they would like to (C)opy, (M)ove, or (D)elete it
by choosing C, M, or D
the user chooses C, ask for the destination directory and move it there
the user chooses M, ask for the destination directory and move it there
the user chooses D, delete the file.
Script 3 ensure that the user enters only C, M, or D, warning them about the
mistake if they should enter something else.
will turn in three shell scripts named "Script1.sh",
"Script2.sh", and "Script3.sh". Turn in your assignments on