2015-12-11 18:38:15 +, 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
On 11/12/15 14:46, Stephane Chazelas wrote:
> 2015-12-10 10:40:30 -0700, Bob Proulx:
> [...]
>> In this instance the first thing I thought of when I read your dirname
>> -f request was a loop.
>>
>>while read dir; do dirname $dir; done < list
>
> "read dir" expects the input in a very specific
2015-12-10 10:40:30 -0700, Bob Proulx:
[...]
> In this instance the first thing I thought of when I read your dirname
> -f request was a loop.
>
>while read dir; do dirname $dir; done < list
"read dir" expects the input in a very specific format and
depends on the current value of IFS (like a