cancel
Showing results for 
Search instead for 
Did you mean: 

print from .gz to a txt file

 
SOLVED
Go to solution
Highlighted
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 4
Highlighted
Honored Contributor
Solution

Re: print from .gz to a txt file

What's in "save.gz"? How was it made?
Highlighted
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 &
Highlighted
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"
Highlighted
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.