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

winapi - How to get a user input on a MessageBox on C++? -

parcelable - Unmarshalling unknown type code exception while reading parcel values in Android 4.4+ -