Write a bash script larger x y that compares the sizes of


Write a bash script larger X Y that compares the sizes of two specified files X and Y, and reports which file is larger. For example, if X is larger, the output should be "File X is larger", while if Y is larger, the output should be "File Y is larger". If the files are exactly the same size, the output should be "File X and File Y are exactly the same size". If X and/or Y are not valid names of existing files, then report a reasonable error message, such as "File X does not exist". If fewer than two command line arguments are specified, an appropriate error message should be given. Show the output of your script when comparing the size of your shell script called larger to the size of the /etc/passwd file on your Linux system.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a bash script larger x y that compares the sizes of
Reference No:- TGS01145922

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)