cd problem

Ana Maria De Alvare' anamaria%saffron.wpd at sgi.com
Fri Aug 10 02:32:38 AEST 1990


In csh you can test in an if statement if the directory exist and 
then do the cd.

For example:

if (-d directoryname) then
echo it exist
else
echo it does not exist
endif

Ana Maria
-------------------------------------------------------------------------------
Ana Maria De Alvare' 	MTS Secure IRIX            	 Silicon Graphics, Inc.
anamaria at sgi.COM    {decwrl,sun}!sgi!whizzer!saffron!anamaria      415-335-1549

-------------------------------------------------------------------------------



More information about the Comp.unix.wizards mailing list