bug-coreutils
[Top][All Lists]
Advanced

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

bug#22128: dirname enhancement


From: Stephane Chazelas
Subject: bug#22128: dirname enhancement
Date: Fri, 11 Dec 2015 22:08:15 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

2015-12-11 18:38:15 +0000, Pádraig Brady:
[...]
> Both GNU basename and dirname since 8.16 (2012) got
> the -z option to make the _output_ post-processable,
> along with support for processing multiple inputs.
[...]

Indeed.

And I can see GNU basename takes a -a option to accept more than
one file path (and take the suffix to strip with -s which is
how basename should have been designed in the first place) so
one can do:

< list xargs -r0 basename -az --

Or

< list xargs -r0 basename -azs .txt --

and have a minimum number of invocations of basename and a
post-processable output.

All good. Thanks.

-- 
Stephane





reply via email to

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