HELP ME !必给分!
writer a shell program named "test" to meet the following criteria:
1.you can choose your preferred shell(bash,sh,csh..)
2.synopsis:
test [option] directory-path
3.optin:
-h print out help message.
-e print the file count in the directory tree of directory-path
-t print the file count of different file type in the directory tree
of directory-path.the file type should include "text","ELE","script" and
"other"
-s print the all file names which file size is greater than 1M in the
directory tree of directory-path
-m Create or overwrite the file /tmp/haha that contains all file listing(
with absolute path) of *.mp3 and *.MP3 in the directory-path.
-o Sort all files in directory-path excluding dub-directory by date,
and print the sorted result on STD OUT.printed information should
only include file name,size and date.