xref: /minix3/usr.bin/gzip/zmore.1 (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel Sambuc.\"	$NetBSD: zmore.1,v 1.4 2013/11/12 21:58:37 pettai Exp $
2*84d9c625SLionel Sambuc.\"	$OpenBSD: zmore.1,v 1.10 2009/08/16 09:41:08 sobrado Exp $
35a645f22SBen Gras.\"
45a645f22SBen Gras.\" Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com>
55a645f22SBen Gras.\"
65a645f22SBen Gras.\" Permission to use, copy, modify, and distribute this software for any
75a645f22SBen Gras.\" purpose with or without fee is hereby granted, provided that the above
85a645f22SBen Gras.\" copyright notice and this permission notice appear in all copies.
95a645f22SBen Gras.\"
105a645f22SBen Gras.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
115a645f22SBen Gras.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
125a645f22SBen Gras.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
135a645f22SBen Gras.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
145a645f22SBen Gras.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
155a645f22SBen Gras.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
165a645f22SBen Gras.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
175a645f22SBen Gras.\"
185a645f22SBen Gras.\" Sponsored in part by the Defense Advanced Research Projects
195a645f22SBen Gras.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
205a645f22SBen Gras.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
215a645f22SBen Gras.\"
22*84d9c625SLionel Sambuc.Dd August 16, 2009
235a645f22SBen Gras.Dt ZMORE 1
245a645f22SBen Gras.Os
255a645f22SBen Gras.Sh NAME
26*84d9c625SLionel Sambuc.Nm zmore ,
27*84d9c625SLionel Sambuc.Nm zless
28*84d9c625SLionel Sambuc.Nd view compressed files
295a645f22SBen Gras.Sh SYNOPSIS
305a645f22SBen Gras.Nm zmore
315a645f22SBen Gras.Op Ar flags
32*84d9c625SLionel Sambuc.Op Ar
33*84d9c625SLionel Sambuc.Nm zless
34*84d9c625SLionel Sambuc.Op Ar flags
35*84d9c625SLionel Sambuc.Op Ar
365a645f22SBen Gras.Sh DESCRIPTION
375a645f22SBen Gras.Nm
385a645f22SBen Grasis a filter that allows the viewing of files compressed with Lempel-Ziv
395a645f22SBen Grasencoding.
405a645f22SBen GrasSuch files generally have a
415a645f22SBen Gras.Dq Z
425a645f22SBen Grasor
435a645f22SBen Gras.Dq gz
445a645f22SBen Grasextension (both the
455a645f22SBen Gras.Xr compress 1
465a645f22SBen Grasand
475a645f22SBen Gras.Xr gzip 1
485a645f22SBen Grasformats are supported).
495a645f22SBen GrasAny
505a645f22SBen Gras.Ar flags
515a645f22SBen Grasthat are specified are passed to the user's preferred
525a645f22SBen Gras.Ev PAGER
535a645f22SBen Gras(which is
545a645f22SBen Gras.Pa /usr/bin/more
555a645f22SBen Grasby default).
565a645f22SBen Gras.Pp
57*84d9c625SLionel Sambuc.Nm zless
58*84d9c625SLionel Sambucis equivalent to
59*84d9c625SLionel Sambuc.Nm zmore
60*84d9c625SLionel Sambucbut uses
61*84d9c625SLionel Sambuc.Xr less 1
62*84d9c625SLionel Sambucas a pager instead of
63*84d9c625SLionel Sambuc.Xr more 1 .
64*84d9c625SLionel Sambuc.Pp
655a645f22SBen GrasWhen multiple files are specified,
665a645f22SBen Gras.Nm
675a645f22SBen Graswill pause at the end of each file and present the following prompt to the user:
685a645f22SBen Gras.Bd -literal -offset indent
695a645f22SBen Grasprev_file (END) - Next: next_file
705a645f22SBen Gras.Ed
715a645f22SBen Gras.Pp
725a645f22SBen GrasWhere
735a645f22SBen Gras.Sy prev_file
745a645f22SBen Grasis the file that was just displayed and
755a645f22SBen Gras.Sy next_file
765a645f22SBen Grasis the next file to be displayed.
775a645f22SBen GrasThe following keys are recognized at the prompt:
785a645f22SBen Gras.Bl -tag -width "e or q" -offset indent
795a645f22SBen Gras.It Ic e No or Ic q
805a645f22SBen Grasquit
815a645f22SBen Gras.Nm zmore .
825a645f22SBen Gras.It Ic s
835a645f22SBen Grasskip the next file (or exit if the next file is the last).
845a645f22SBen Gras.El
855a645f22SBen Gras.Pp
865a645f22SBen GrasIf no files are specified,
875a645f22SBen Gras.Nm
885a645f22SBen Graswill read from the standard input.
895a645f22SBen GrasIn this mode
905a645f22SBen Gras.Nm
915a645f22SBen Graswill assume
925a645f22SBen Gras.Xr gzip 1
935a645f22SBen Grasstyle compression since there is no suffix on which to make a decision.
945a645f22SBen Gras.Sh ENVIRONMENT
955a645f22SBen Gras.Bl -tag -width "PAGER"
965a645f22SBen Gras.It Ev PAGER
975a645f22SBen GrasProgram used to display files.
985a645f22SBen GrasIf unset,
995a645f22SBen Gras.Pa /usr/bin/more
100*84d9c625SLionel Sambucis used
101*84d9c625SLionel Sambuc.Pq Nm zmore
102*84d9c625SLionel Sambucor
103*84d9c625SLionel Sambuc.Pa /usr/bin/less
104*84d9c625SLionel Sambuc.Pq Nm zless .
1055a645f22SBen Gras.El
1065a645f22SBen Gras.Sh SEE ALSO
1075a645f22SBen Gras.Xr compress 1 ,
1085a645f22SBen Gras.Xr less 1 ,
1095a645f22SBen Gras.Xr more 1
110