Create a bash shell script of directory


Discussion:

Create a Bash shell script that will:

+ use as its input the current directory from which it is run

+ print the count and the name of the file, for each file

+ assign and print either "[DIR]", "[FIL]", or "[UNK]" for each file, based on the file's type

+ have the output of the general form:

[TYP] : count : file_name

Example:

[FIL] : 01 : dog

[FIL] : 02 : cat

[DIR] : 03 : colors

[FIL] : 04 : horse

[FIL] : 05 : pig.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Create a bash shell script of directory
Reference No:- TGS01932158

Now Priced at $20 (50% Discount)

Recommended (96%)

Rated (4.8/5)