lesspipe [Was: Re: OpenSSH]
From: Jean-Pierre Radley (jpr_at_jpr.com)
Date: 09/22/03
- Next message: Stuart J. Browne: "Re: How Can I Block Latest Worm-Generated SPAM?"
- Previous message: Bela Lubkin: "Re: OpenServer 5.0.4 on DL380G3 - k_trap panics"
- In reply to: Bela Lubkin: "Re: OpenSSH"
- Next in thread: Stuart J. Browne: "Re: OpenSSH"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Sep 2003 18:20:22 -0400
Bela Lubkin typed (on Sun, Sep 21, 2003 at 08:02:57PM +0000):
| willjay wrote:
|
| > What's really going on here, is somebody is really proud that they we able
| > to get bzip to compile on openserver and now to justify their effort they
| > are craming it down our throats.
|
| Now that's just silly. `bzip2` is one of the most portable programs
| ever written. Not that this is difficult, since all of its real work is
| computational; it needs to do only the simplest of system calls. It's
| so portable that it doesn't even have a `configure` script, and doesn't
| need one.
|
| JPR would hardly need to be proud of unpacking the source and typing
| `make; make install`.
After doing just that, I did perform a minimally original piece
of work, which was to revise my /usr/local/bin/lesspipe script,
effective once one has set the environment variable LESSOPEN to
the value "|lesspipe %s".
#!/bin/ksh
#@(#) lesspipe; JPRadley 17Nov 99
#@(#) invoked by 'less' when the env.var. LESSOPEN='|lesspipe %s'
case "$1" in
*.gz|*.tgz|*.Z) zcat $1 2>/dev/null ;;
*.bz2|*tb2) bzcat $1 2>/dev/null ;;
esac
Then 'less' can display squished files just by typing, e.g.,
less filename.bz2
It obviates the need for 'zless', usually supplied by gzip source, and
which doesn't cope with bzip2 files.
-- JP
- Next message: Stuart J. Browne: "Re: How Can I Block Latest Worm-Generated SPAM?"
- Previous message: Bela Lubkin: "Re: OpenServer 5.0.4 on DL380G3 - k_trap panics"
- In reply to: Bela Lubkin: "Re: OpenSSH"
- Next in thread: Stuart J. Browne: "Re: OpenSSH"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|