1832863 Members
2716 Online
110048 Solutions
New Discussion

Re: uncompress

 
Mallinath_1
New Member

uncompress

Hi,
Is there any option in uncompress command to uncompress large file first than smaller ones.

Thanks
Mallinath
5 REPLIES 5
H.Merijn Brand (procura
Honored Contributor

Re: uncompress

Short answer: no. Sorry.

BTW consider using bzip2 or gzip instead of compress. They not only compress *much* better, but also have a more sophisticated user interface with many more options.

gzip is preinstalled on your system, but both recent builds of gzip and bzip2 are available on my ITRC site: https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Steven Gillard_2
Honored Contributor

Re: uncompress

Well, not directly, but you can use other shell commands to sort the files based on size first, eg (all one line):

find . -name \*.Z 2>/dev/null | xargs du -k | sort -nr | awk '{print $2}' | xargs uncompress

Regards,
Steve
Robert-Jan Goossens
Honored Contributor

Re: uncompress

Hi Mallinath,

No not possible, try using the gzip compression tool, it is better.

http://hpux.connect.org.uk/hppd/hpux/Gnu/gzip-1.3.3/

Hope it helps,

Robert-Jan.
twang
Honored Contributor

Re: uncompress

No, but this may help you,
# ls -l |sort +5 |awk '{printf ("%s\n", $9)}' |xargs uncompress
H.Merijn Brand (procura
Honored Contributor

Re: uncompress

# perl -le'qx"uncompress $_"for sort{-s$b<=>-s$a}<*.Z>'

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn