Unix checking current pathname a directory -


i using korn shell , trying write scrip tell if current pathname directory, , if going run more commands. have tried doing if statement have been told better suited using while statement. have no luck.

so... trying like:

if [[ -d 'path' ]];     <commands> fi 

didn't work?

maybe post example code.


Comments

Popular posts from this blog

arrays - PHP Shopping Cart Variable and Object errors -

javascript - jQuery "chosen": conflict with 'selected' attribute in option tag -