Hungrycat is a tool that prints the contents of a file on standard output while releasing the disk space occupied by the file. It works when you need to process a large number of files, but you don't have enough space to store the output file, and you no longer need to enter the file.
Use Example:
$ md5sum Bigfile
D9b18676a36c919chttp://www.aliyun.com/zixun/aggregation/7721.html ">1688cba61a2cf0f1 Bigfile
$ LS-LH Bigfile
RW-------1 jwilk users 281M Sep 19:46 bigfile
$ DF.
FileSystem Size Used Avail use% mounted on
/dev/ice9 330M 284M 29M 91%/mnt/ice9
$ Hungrycat Bigfile | bzip2 > bigfile.bz2
$ LS-LH bigfile*
RW-------1 jwilk users 60M Sep 19:49 bigfile.bz2
$ DF.
FileSystem Size Used Avail use% mounted on
/dev/ice9 330M 63M 251M from/mnt/ice9
$ Bzcat bigfile.bz2 | Md5sum
D9B18676A36C919C1688CBA61A2CF0F1-
Hungrycat 0.3 This version adds an option to use the Falloc_fl_punch_hole fallocate ().
Software Information: Http://jwilk.net/software/hungrycat
Download Address: http://jwilk.net/pool/hungrycat-0.3.tar.gz