i have a c-shell script.
and i pass it one or two arguments
the first argument is the directory
the second is the "-r"
now,
if i pass it only one, it searches the files ending in txt in that directory
if i pass it two parameters, like "temp" and "-r"
i want it to go through all the files and FOLDERS, of "temp", to search through.
so i was thinking,
if( $argv[2] == "-r") then {
go through all files and FOLDERS, of $argv[1]
}
im new in csh, and i don't know how to write the code
---------- Post updated at 03:06 PM ---------- Previous update was at 01:47 PM ----------
anybody? i really need this to get done pls