1.\" $NetBSD: zmore.1,v 1.4 2013/11/12 21:58:37 pettai Exp $ 2.\" $OpenBSD: zmore.1,v 1.10 2009/08/16 09:41:08 sobrado Exp $ 3.\" 4.\" Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> 5.\" 6.\" Permission to use, copy, modify, and distribute this software for any 7.\" purpose with or without fee is hereby granted, provided that the above 8.\" copyright notice and this permission notice appear in all copies. 9.\" 10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" 18.\" Sponsored in part by the Defense Advanced Research Projects 19.\" Agency (DARPA) and Air Force Research Laboratory, Air Force 20.\" Materiel Command, USAF, under agreement number F39502-99-1-0512. 21.\" 22.Dd August 16, 2009 23.Dt ZMORE 1 24.Os 25.Sh NAME 26.Nm zmore , 27.Nm zless 28.Nd view compressed files 29.Sh SYNOPSIS 30.Nm zmore 31.Op Ar flags 32.Op Ar 33.Nm zless 34.Op Ar flags 35.Op Ar 36.Sh DESCRIPTION 37.Nm 38is a filter that allows the viewing of files compressed with Lempel-Ziv 39encoding. 40Such files generally have a 41.Dq Z 42or 43.Dq gz 44extension (both the 45.Xr compress 1 46and 47.Xr gzip 1 48formats are supported). 49Any 50.Ar flags 51that are specified are passed to the user's preferred 52.Ev PAGER 53(which is 54.Pa /usr/bin/more 55by default). 56.Pp 57.Nm zless 58is equivalent to 59.Nm zmore 60but uses 61.Xr less 1 62as a pager instead of 63.Xr more 1 . 64.Pp 65When multiple files are specified, 66.Nm 67will pause at the end of each file and present the following prompt to the user: 68.Bd -literal -offset indent 69prev_file (END) - Next: next_file 70.Ed 71.Pp 72Where 73.Sy prev_file 74is the file that was just displayed and 75.Sy next_file 76is the next file to be displayed. 77The following keys are recognized at the prompt: 78.Bl -tag -width "e or q" -offset indent 79.It Ic e No or Ic q 80quit 81.Nm zmore . 82.It Ic s 83skip the next file (or exit if the next file is the last). 84.El 85.Pp 86If no files are specified, 87.Nm 88will read from the standard input. 89In this mode 90.Nm 91will assume 92.Xr gzip 1 93style compression since there is no suffix on which to make a decision. 94.Sh ENVIRONMENT 95.Bl -tag -width "PAGER" 96.It Ev PAGER 97Program used to display files. 98If unset, 99.Pa /usr/bin/more 100is used 101.Pq Nm zmore 102or 103.Pa /usr/bin/less 104.Pq Nm zless . 105.El 106.Sh SEE ALSO 107.Xr compress 1 , 108.Xr less 1 , 109.Xr more 1 110