I got it. You don't like the idea. That's fine. Please close the ticket.
--Ken
> -Original Message-
> From: Bob Proulx [mailto:b...@proulx.com]
> Sent: Thursday, December 10, 2015 12:41 PM
> To: Nellis, Kenneth
> Cc: 22...@debbugs.gnu.org
> Subject: Re: bug#22128: dirname enhancement
>
>
Nellis, Kenneth wrote:
> Still, my -f suggestion would be easier to type,
> but I welcome your alternatives.
Here is the problem. You would like dirname to read a list from a
file. Someone else will want it to read a file list of files listing
files. Another will want to skip one header line.
Thanx. Hadn't yet discovered GNU find's -printf option.
Still, my -f suggestion would be easier to type,
but I welcome your alternatives.
-Ken
> -Original Message-
> From: Bob Proulx [mailto:b...@proulx.com]
> Sent: Thursday, December 10, 2015 11:34 AM
> To: Nellis, Kenneth; 22...@debbugs.
Pádraig Brady wrote:
> Nellis, Kenneth wrote:
> > E.g., to get a list of directories that contain a specific file:
> >
> > find -name "xyz.dat" | dirname -f -
>
> find -name "xyz.dat" -print0 | xargs -r0 dirname
Also if using GNU find can use GNU find's -printf operand and %h to
print the direc