Write a shell script to emulate the Id command of PRIME which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options.
The main ones are:
file select files only
dir select directories only
reverse sort in reverse order
no_header put no header on the output
brief output the header only
size display the size of each file
help display Id´s syntax and options