HI

i wat to know the code for the following program

check whether the given name is a directory or not?if it is a directory also check whether there are 5 files or not if yes list out the files in dscending order based on their lengths and also print the size.if not a directory give the appropriate message

write a code basing cshell

thanking you