Search Results

Search: Posts Made By: Kingsley
4,516
Posted By binlib
Call gzip directly from awk to avoid disk IO: ...
Call gzip directly from awk to avoid disk IO:

zcat file |awk -F, '{print | "gzip >" $1 ".gz"}'

This is not optimal. Doing pipelines or redirections in awk is very awkward for awk will have to...
4,516
Posted By rdcwayx
mkdir subfolder zcat file | awk -F, '{print $0...
mkdir subfolder
zcat file | awk -F, '{print $0 > "subfolder/" $1}'
gzip subfolder/*
4,516
Posted By kumaran_5555
may be you can try something like this. ...
may be you can try something like this.

First write the uncompressed data in subfile1 and when you are about to strat the subfile2, run gzip for subfile1.
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy