Question: Linux bash scripting, Simple Shell Scripting Write a bash script that takes as input the name of a file. The script should move the given
Linux bash scripting, Simple Shell Scripting

Write a bash script that takes as input the name of a file. The script should move the given file, if it exists, to a directory named trash that is located within your home directory. If the trash directory does not exist, the script should create it. If the given file does not exist, an appropriate error message should be printed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
