Code Comments
Programming Forum and web based access to our favorite programming groups.Here's what I want to do: take a file in a compressed format(gzip or bzip2) and process it awk. I know I can do this easily in a shell script wrapper, zcat $1 | awk.... but I was wondering if there is a way to process compressed files natively in Awk. Aaron
Post Follow-up to this messageaaronm@europeanwatch.com <aaronm@europeanwatch.com> wrote: > Here's what I want to do: take a file in a compressed format(gzip or > bzip2) and process it awk. I know I can do this easily in a shell > script wrapper, zcat $1 | awk.... > but I was wondering if there is a way to process compressed files > natively in Awk. You could implement the decompressor in awk. You'd have to be barkingmad of course. Slightly less natively, "bzip -d /tmp/tmp.bz" |getline
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.