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

Linux bash scripting, Simple Shell Scripting Write a bash script that takes

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!