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

c - ALSA programming: how to stop immediately -

c++ - How call method from Qt GUI in background worker thread using QThread -