#disk-space #file #truncate #cat #condition #save #disc

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

#260 in Filesystem

Download history 267/week @ 2024-07-13 86/week @ 2024-07-20 7/week @ 2024-07-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.9–2.7MB
~51K SLoC