1

I have a collection of files compressed with zstandard, and would like to look at the first 10 megabytes of the files without decompressing the entire file. Is there way to get zstdcat to only decompress the first N bytes of a file, rather than the entire file?

razeh
  • 2,725
  • 1
  • 20
  • 27

1 Answers1

2

zstdcat SRC_FILE | head -c BYTES > DEST_FILE

Cyan
  • 13,248
  • 8
  • 43
  • 78