coreutils
[Top][All Lists]
Advanced

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

Re: add command line switch to "head" to always print filename


From: Pádraig Brady
Subject: Re: add command line switch to "head" to always print filename
Date: Thu, 27 Feb 2020 01:04:03 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Thunderbird/73.0

On 26/02/2020 19:50, Matt Zagrabelny wrote:
Greetings,

Thank you for writing free software!

I use a shell alias that uses GNU head via coreutils. The shell alias
dumps out the contents of files.

A stripped down version of my alias looks like:

$ head -n -0 foo bar
==> foo <==
contents of foo

==> bar <==
contents of bar

$ head -n -0 foo
contents of foo

I would like this output to also have the filename printed:

$ head -n -0 --always-print-filename foo
==> foo <==
contents of foo

I am using coreutils 8.30.

Thus, I am asking that something equivalent to --always-print-filename
be added to GNU "head".

Thank you for considering this feature request!

--verbose should do this already.

cheers,
Pádraig



reply via email to

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