coreutils
[Top][All Lists]
Advanced

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

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


From: Matt Zagrabelny
Subject: add command line switch to "head" to always print filename
Date: Wed, 26 Feb 2020 13:50:54 -0600

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!

-m



reply via email to

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