If directory doesn't exist, try the next one? - Which command to use?
I have a little script where it goes to a certain directory, but if that directory doesn't exist, I want to try to go to a different directory. What linux commands should I be using?
For example:
#Go to this directory
cd $HOME/Desktop/"${projName}"/HTML
if = FAILS
{ go to this directory}
Thanks
|