You are not logged in.

#1 2003-10-13 00:23:40

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

handy script from slack: preprocessor for less

I took this script from slack, it allows you to view {gzip,bzip2}ed, tar.*, zip files directly from less.
get it from http://www.kegep.tuc.gr/~manolis/archlinux/lesspipe.sh
save it in /usr/bin (or somewhere else in your $PATH), 'chmod +x' it & add the following line in /etc/profile :

export LESSOPEN="|lesspipe.sh %s"

source /etc/profile or log{out,in} & enjoy.
It's a nice addition for future versions of less pkg, IMHO.

Offline

#2 2006-05-18 11:10:11

lupylucke
Member
Registered: 2006-05-18
Posts: 24

Re: handy script from slack: preprocessor for less

I was just wondering why it isn't included by derfaultin arch. AFAIK the
"lesspipe.sh" script is pretty standard, so I was surprised not to find it in arch.

Offline

#3 2006-05-18 12:51:35

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: handy script from slack: preprocessor for less

The file is returning a 404, so I don't know what all it does, but I do know this.  zcat.  bzcat.  it's really not that hard to do this kinda stuff without a script holding your hand.

Offline

#4 2006-05-18 12:52:03

postlogic
Member
Registered: 2005-02-24
Posts: 410
Website

Re: handy script from slack: preprocessor for less

This has been posted about before.

http://bbs.archlinux.org/viewtopic.php? … t=lesspipe

Offline

#5 2006-05-18 20:25:06

lupylucke
Member
Registered: 2006-05-18
Posts: 24

Re: handy script from slack: preprocessor for less

>The file is returning a 404, so I don't know what all it does, but I do know
>this. zcat. bzcat. it's really not that hard to do this kinda stuff without a
>script holding your hand.

of course it's not hard, but the script is handy !!!!
just one command to view all .bz .zip .tar .... files - no need to remember what option to give to tar to get a listing of the files an archive contais...

Offline

#6 2006-05-18 20:48:18

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: handy script from slack: preprocessor for less

postlogic wrote:

Actually, technically this is the first thread about it, since it was started in 2003.  8)

Offline

Board footer

Powered by FluxBB