#cat #output #space #cat-once

app cat-once

Tool used to cat files in tight disc conditions saving disk space

5 stable releases

1.3.0 Jul 19, 2024
1.1.1 Jul 19, 2024
1.1.0 Jul 17, 2024
1.0.1 Jul 16, 2024

#479 in Filesystem

Download history 4/week @ 2025-02-27

115 downloads per month

GPL-3.0 license

21KB
542 lines

cat-once

Cat and truncate file at the same time, by recopying it to itself.

Sample usage

Unpack files from zst tar to output directory

cat-once --file test2.tar.zst --truncate 33 | tar -I zstd -xf - -C output

cat-once --dry-run --file heimdall-mainnet-snapshot-bulk-2024-02-01.tar.zst -c 1010765k | tar -I zstd -xf - -C output

Dependencies

~1.7–2.6MB
~48K SLoC