Re: default ungziped /usr/doc/*/* ?
*- On 12 Jun, Jonathan D. Proulx wrote about "Re: default ungziped /usr/doc/*/* ?"
> On Sat, Jun 12, 1999 at 11:01:26PM +0900, OhkumaTadayoshi wrote:
>>
>> Hi,
>>
>> I am wondering about way to grep or to view with editor /usr/doc/*/* files.
>
> zgrep
> zless
> zmore
>
> all work on gzipped files.
Also read /usr/doc/less/LESSOPEN.gz. Basically just add the following
to your shell init script(.profile,.login, etc):
eval `/usr/bin/lesspipe`
And less by itself will read gzipped and bziped files as well as show
contents of tar, deb, arj, rpm and many others as well as info on
graphics files, which you can define by editing the /usr/bin/lesspipe.
Examples:
% less debianlogo-5.jpg
debianlogo-5.jpg 65x78 DirectClass 2951b JPEG 1s
% less /tmp/hello_1.3-14.3.deb
/tmp/hello_1.3-14.3.deb:
new debian package, version 2.0.
size 18798 bytes: control archive= 636 bytes.
562 bytes, 14 lines control
122 bytes, 4 lines * postinst #!/bin/sh
68 bytes, 3 lines * prerm #!/bin/sh
Package: hello
Version: 1.3-14.3
Architecture: i386
Depends: libc6
Installed-Size: 34
Maintainer: Ian Jackson <ian@chiark.greenend.org.uk>
Description: The classic greeting, and a good example
The GNU hello program produces a familiar, friendly greeting. It
allows nonprogrammers to use a classic computer science tool which
would otherwise be unavailable to them.
.
Seriously, though: this is an example of how to do a Debian package.
It is the Debian version of the GNU Project's `hello world' program
(which is itself an example for the GNU Project).
*** Contents:
drwxr-xr-x root/root 0 1998-10-04 04:02 ./
drwxr-xr-x root/root 0 1998-10-04 04:02 usr/
drwxr-xr-x root/root 0 1998-10-04 04:02 usr/doc/
drwxr-xr-x root/root 0 1998-10-04 04:02 usr/doc/hello/
-rw-r--r-- root/root 2427 1998-10-04 04:02 usr/doc/hello/copyright
-rw-r--r-- root/root 2295 1998-10-04 04:02 usr/doc/hello/changelog.gz
-rw-r--r-- root/root 1827 1998-10-04 04:02 usr/doc/hello/changelog.Debian.gz
drwxr-xr-x root/root 0 1998-10-04 04:02 usr/man/
drwxr-xr-x root/root 0 1998-10-04 04:02 usr/man/man1/
-rw-r--r-- root/root 596 1998-10-04 04:02 usr/man/man1/hello.1.gz
drwxr-xr-x root/root 0 1998-10-04 04:02 usr/bin/
-rwxr-xr-x root/root 5000 1998-10-04 04:02 usr/bin/hello
drwxr-xr-x root/root 0 1998-10-04 04:02 usr/info/
-rw-r--r-- root/root 8779 1998-10-04 04:02 usr/info/hello.info.gz
Cool huh?
--
Brian
---------------------------------------------------------------------
Mechanical Engineering servis@purdue.edu
Purdue University http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------
Reply to: