Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwilk/hungrycat
cat & rm in a single tool
https://github.com/jwilk/hungrycat
Last synced: about 1 month ago
JSON representation
cat & rm in a single tool
- Host: GitHub
- URL: https://github.com/jwilk/hungrycat
- Owner: jwilk
- License: mit
- Created: 2015-05-30T12:06:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-29T10:51:39.000Z (11 months ago)
- Last Synced: 2024-08-09T00:22:25.427Z (5 months ago)
- Language: C
- Homepage: https://jwilk.net/software/hungrycat
- Size: 229 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Overview
========**hungrycat** is a tool that prints contents of a file
on the standard output,
while simultaneously freeing disk space occupied by the file.It can be useful if you need to process a large file, but:
- you don't have enough space to store the output file and
- you wouldn't need the input file afterwards.Example
=======.. code:: console
$ md5sum bigfile
d9b18676a36c919c1688cba61a2cf0f1 bigfile$ ls -lh bigfile
-rw-r--r-- 1 jwilk users 281M Sep 13 19:46 bigfile$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/ice9 330M 284M 29M 91% /mnt/ice9$ hungrycat bigfile | xz > bigfile.xz
$ ls -lh bigfile*
-rw-r--r-- 1 jwilk users 60M Sep 13 19:49 bigfile.xz$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/ice9 330M 63M 251M 20% /mnt/ice9$ xz -d < bigfile.xz | md5sum
d9b18676a36c919c1688cba61a2cf0f1 -.. vim:ts=3 sts=3 sw=3 et tw=76 ft=rst