bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: basename feature request


From: Bob Proulx
Subject: Re: basename feature request
Date: Wed, 16 Jun 2004 19:25:25 -0600
User-agent: Mutt/1.3.28i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]