bug-coreutils
[Top][All Lists]
Advanced

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

Re: head that accepts gz files?


From: Pádraig Brady
Subject: Re: head that accepts gz files?
Date: Wed, 02 Dec 2009 09:53:29 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Alfred M. Szmidt wrote:
>    I'm wondering if there is a similar program to 'head' that accepts gz
>    files. (just as zgrep to grep)
> 
> You can use: zcat foo.gz | head

Or more generally: gzip -fdc "$file" | head
The issue with that is that one can't pass multiple files
to `head` and get a ==> filename <== inserted.

cheers,
Pádraig.




reply via email to

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