duncan brown wrote:
> otherwise, basename could really use a flag, one that tells you the
> directory the file resides in. i realize that sed can help you out, but
> it's a pain when sed recognizes the & as a special char and your dir has
> that character.
>
> basename -d "blah/blah/blah" would be alot easier and cleaner.
Are you talking about 'dirname'?
dirname blah/blah/blah
blah/blah
'basename' and 'dirname' are the opposites of each other.
Bob