CAN SOMEONE PLEASE HELP!!!!!!!!
Create a KORN shell UNIX utility called search. This utility will be able to do following:
Recursively search for files using file expansion characters
Recursively search for files using regular expressions
Syntax of a command line for this utility:
search option(s) pattern directory [filename]
Valid options are:
-f - use file expansion
-r - use regular expressions
-i - ignore (do not show) errors due to access permissions
Please note, that the -i option can be combined with the -f option and your utility should be able to process such case correctly. If the -i option will be used with conjunction with the -r option an error should be generated.
Pattern will treated as file expansion or regular expression based on specified option.
Directory specified will be the topmost directory where the search will be performed.
If the optional file name is specified output should be sent to it instead to standard output (which is default).
Any other option should result in an error message.
Make sure, that your script is well documented.
Valid options for your scripts are:
Any other options (including -ri and -ir) should generate an error.