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

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

#257 in Filesystem

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.8–2.7MB
~51K SLoC