Saturday, February 04, 2006

How to get the parent directory of a folder

$ dirname `pwd`

In shell script:

VAR=${dirname `pwd`}

1 Comments:

Blogger Unknown said...

${dirname `pwd`}: bad substitution

5:06 PM  

Post a Comment

<< Home