Re: zmore for bzip2?

2003-08-31 Thread Mikko Työläjärvi
On Sun, 31 Aug 2003 [EMAIL PROTECTED] wrote: > Adapting zmore for the case where you specify the files to display on > the command line is not problem at all: > > > diff kk zmore > 5,14d4 > < get_decompressor () > < { > < case `file ${1--} | sed "s/[^:]*: *\([^ ]*\).*/\1

Re: zmore for bzip2?

2003-08-30 Thread pbdlists
Adapting zmore for the case where you specify the files to display on the command line is not problem at all: > diff kk zmore 5,14d4 < get_decompressor () < { < case `file ${1--} | sed "s/[^:]*: *\([^ ]*\).*/\1/"` in < "compress"*) DECOMPRESSOR="uncompress -c";;

Re: zmore for bzip2?

2003-08-30 Thread Chuck Swiger
David Kelly wrote: [ ... ] Yes, of course. But zmore is smart enough to figure out what to do with several compression techniques, or even to handle non-compressed files very trivially and without hassle. 'zmore' is a simple shell script which calls "gzcat | ${PAGER-more}". One solution to your p

Re: zmore for bzip2?

2003-08-30 Thread David Kelly
On Wed, Aug 27, 2003 at 11:37:47PM -0500, ES top-posted: > For your bzip2 files, would the following command suffice? > > bzcat | less [...] Yes, of course. But zmore is smart enough to figure out what to do with several compression techniques, or even to handle non-compressed files very trivia

Re: zmore for bzip2?

2003-08-29 Thread ES
For your bzip2 files, would the following command suffice? bzcat | less This would be similar to handling a gzipped file with: zcat | less ...which is essentially what "zmore" does... -bsdterm On Wed, Aug 27, 2003 at 11:00:42AM -0500, David Kelly wrote: > /etc/newsyslog.conf uses J in Free

Re: zmore for bzip2?

2003-08-28 Thread Lowell Gilbert
David Kelly <[EMAIL PROTECTED]> writes: > /etc/newsyslog.conf uses J in FreeBSD-5.1 to specify bzip2 format for > compression. zmore(1) doesn't know bzip format, is someone working on > it? I doubt it; seems kind of trivial to have a separate program to implement 'bzcat | more`... _

zmore for bzip2?

2003-08-27 Thread David Kelly
/etc/newsyslog.conf uses J in FreeBSD-5.1 to specify bzip2 format for compression. zmore(1) doesn't know bzip format, is someone working on it? -- David Kelly N4HHE, [EMAIL PROTECTED] = The human mind ordinarily operates at onl