Create a script file to list the files in a directory in


Create a script file to list the files in a directory in sorted order, showingonlythe file name, file size, and modification date.Each file's attributes must be on one line per file, in any order.The script can have and optional parameter which can be either "-s" or "-t", but not both.If "-s" is a parameter, the sorting is to be by size, with largest first.If "-t" is a parameter, the sorting is to be by modification date, with most recent first.Otherwise the sorting is to be by file name.The script will be named "my_ls2" and must be executable.

Solution Preview :

Prepared by a verified Expert
Database Management System: Create a script file to list the files in a directory in
Reference No:- TGS0665959

Now Priced at $40 (50% Discount)

Recommended (97%)

Rated (4.9/5)