bug#22128: dirname enhancement

2015-12-10 Thread Bob Proulx
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.

bug#22128: dirname enhancement

2015-12-10 Thread Nellis, Kenneth
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 >

bug#22128: dirname enhancement

2015-12-10 Thread Bob Proulx
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