On Tue, November 21, 2006 2:46 pm, Shawn Welter wrote:
> You can also use zcat which is in /usr/bin
> so you would get this command
>
> zcat var/log/system.log.0.gz | grep "I/O"
Heh. While they are separate binaries they are the same thing.
from man zcat...
<snip>
NAME
gzip, gunzip, zcat - compress or expand files
SYNOPSIS
gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name ... ]
gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name ... ]
zcat [ -fhLV ] [ name ... ]
</snip>
Even more fun...
dhcp172-21s10n84:~ jwisenba$ crc32 /usr/bin/zcat
21b9c4c7
dhcp172-21s10n84:~ jwisenba$ crc32 /usr/bin/gzip
21b9c4c7
dhcp172-21s10n84:~ jwisenba$ crc32 /usr/bin/gunzip
21b9c4c7
Or
dhcp172-21s10n84:~ jwisenba$ cksum /usr/bin/zcat
3714269913 129920 /usr/bin/zcat
dhcp172-21s10n84:~ jwisenba$ cksum /usr/bin/gzip
3714269913 129920 /usr/bin/gzip
dhcp172-21s10n84:~ jwisenba$ cksum /usr/bin/gunzip
3714269913 129920 /usr/bin/gunzip
:)
Josh
> On Nov 21, 2006, at 5:42 AM, Peter Bukowinski wrote:
>
>> To read the a .gz'ed log file, simply 'gunzip -c' it. For example:
>>
>> gunzip -c /var/log/system.log.0.gz | grep "I/O"
>
> -------
> Shawn Welter
> Systems Administrator.
> Dark Horse Comics, Inc.
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Remote-desktop mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
Josh Wisenbaker
U, U, D, D, L, R, L, R, B, A, Start for your server
http://www.afp548.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden