Skip to content

v1.0.0

Latest

Choose a tag to compare

@andreimerlescu andreimerlescu released this 11 Aug 13:39
1ecfa16

I'm excited to announce the first official release of trimm, a versatile command-line tool for trimming, splitting, and joining large files with ease. Whether you're managing large log files, datasets, or binary blobs, trimm provides a simple and efficient way to handle your data.

✨ Key Features

  • Byte-Level Trimming: Precisely trim files by removing a specified percentage from the beginning (-first) and/or end (-last). It's fully compatible with binary files.
  • File Chunking: Split large files into smaller, numbered chunks of a specified size in megabytes (-chunk).
  • File Joining: Seamlessly reassemble chunked files back into their original form (-join).
  • Gzip Compression: Optionally compress (-gz) chunks on the fly to save space and automatically decompress them when joining.

Usage Examples

  • Trim a file, keeping the middle 50% (removing the first 20% and last 30%):
    trimm -file large.log -first 20 -last 30 -out trimmed.log
  • Split a file into 100MB chunks and compress them:
    trimm -file huge.dat -chunk 100 -gz
  • Join compressed chunks back into a single file:
    trimm -file huge.dat -join -gz -out huge.restored.dat

We hope you find trimm useful for your file manipulation needs!