C ccc Aug 16, 2010 #1 hi Howto print from a compressed .gz to a txt file, to show names of all directories and their size?
A Andres Aug 16, 2010 #2 You mean a tarball, since gzip can only hold a single file. Code: bsdtar tf foo.tar.gz > textfile
phoenix Aug 16, 2010 #5 And, for searching inside compressed files, as that's usually the next question, there's also zgrep(1) and bzgrep(1).
And, for searching inside compressed files, as that's usually the next question, there's also zgrep(1) and bzgrep(1).
shitson Aug 17, 2010 #6 ccc how is the data inside the .gz file structured? Could you provide a snippet of the output?
OP C ccc Aug 17, 2010 Thread Starter #8 shitson said: ccc how is the data inside the .gz file structured? Could you provide a snippet of the output? Click to expand... Sorry, but howto get snippet of the output?
shitson said: ccc how is the data inside the .gz file structured? Could you provide a snippet of the output? Click to expand... Sorry, but howto get snippet of the output?
shitson Aug 17, 2010 #9 This file with the .gz extension, inside that compressed file - Originally what type of file was it? You could try the following (replace filename.gz, with the name of your file) Code: zcat filename.gz > filename.txt
This file with the .gz extension, inside that compressed file - Originally what type of file was it? You could try the following (replace filename.gz, with the name of your file) Code: zcat filename.gz > filename.txt