Results 1 to 4 of 4
Hi ,
i want to grep the data from zipped file and redirect the same data to another Zip file .
ex: i want search some data from 1.gz and ...
- 03-16-2011 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 6
Grep from zip file and write to zip file
Hi ,
i want to grep the data from zipped file and redirect the same data to another Zip file .
ex: i want search some data from 1.gz and want to create a file 2.gz with matched data.
it is not recommended to write out to a unzip format file and then zip the file , as searched data will be in the size of 20Gb.
thanks in advance
- 03-16-2011 #2Code:
zgrep "foobar" 1.gz | gzip > 2.gz
You must always face the curtain with a bow.
- 03-16-2011 #3
- 03-16-2011 #4
yes it should.
Thanks for the HeadsUp
You must always face the curtain with a bow.


Reply With Quote
