Question: Modify above script to become another shell script 5-2.sh. 5-2.sh should complain errors coming from your script arguments. That is, you need to check the

 Modify above script to become another shell script 5-2.sh. 5-2.sh should

Modify above script to become another shell script 5-2.sh. 5-2.sh should complain errors coming from your script arguments. That is, you need to check the existence of two arguments, AND check if the two arguments is file or not before calling diff.

#!/bin/bash if diff $1 $2 > /devull then Jecho "They are the same" else echo "Thay are different" fi

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!