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.
