cancel
Showing results for 
Search instead for 
Did you mean: 

print from .gz to a txt file

SOLVED
Go to solution
'chris'
Super Advisor

print from .gz to a txt file

hi

Howto print from save.gz to a txt file, to show names of all directories and their size?
4 REPLIES
Steven Schweda
Honored Contributor
Solution

Re: print from .gz to a txt file

What's in "save.gz"? How was it made?
'chris'
Super Advisor

Re: print from .gz to a txt file

it was made using:

# cd / ; find ./ -depth -print -xdev | cpio -ovfB | gzip -c > /tmp/save.gz &
Peter Nikitka
Honored Contributor

Re: print from .gz to a txt file

Hi,

use
gunzip < /tmp/save.gz | cpio -itv >/tmp/save.lst

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Dennis Handly
Acclaimed Contributor

Re: print from .gz to a txt file

Or using pax(1):
gzcat/tmp/save.gz | pax -tv > /tmp/save.lst

This shows the names of all files and directories and their sizes. A directory size probably isn't that useful.