I'm using the UNIX csh and i wish to use recursion to nav my way up (or down as it is) a given folder.
My little test script is called "r" and takes a folder as argv (or $1)
set allFiles = `ls -A $argv`
if (-d $allFiles) then
# do whatever...
however once it chages into a given dir the script "r" is no longer in the new dir and thus the process fails. I'm not the super user so I can not dump the script "r" in "bin". Can anyone help me do something similair?
That was r will always be found wherever you are. At the moment 'r' is only going to be found in the directory you are in.
Alternatively add the location of 'r' to your PATH. Same effect as putting it in bin - the reason that you could find it if it was in bin (regardless of where you are) is that bin is in your path......same logic.
Last edited by peter.herlihy; 08-26-2002 at 03:35 AM..