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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -