Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itpey/chunker

Go command-line utility that splits large files into smaller chunks.
https://github.com/itpey/chunker

amazon-s3 aws-s3 ceph chunk cli cli-app command-line command-line-tool file go go-lang golang-application minio nextcloud s3 storage terminal

Last synced: about 1 month ago
JSON representation

Go command-line utility that splits large files into smaller chunks.

Awesome Lists containing this project

README

        

[//]: # "Attendees: itpey"
[//]: # "Tags: #itpey #go #chunker #golang #go-lang #cli #command-line #split"

Chunker


Chunker is a command-line utility written in Go that splits a large file into smaller chunks based on a specified size. It's useful for breaking down large files into manageable pieces for easier handling or transfer.



Go Reference


license

# Features

- Split large files into smaller chunks.
- Specify the size of each chunk using intuitive size units (e.g., KB, MB, GB).
- Simple and easy-to-use command-line interface.

# Installation

Make sure you have [Go](https://go.dev) installed and configured on your system. Use go install to install Chunker:

```bash
go install github.com/itpey/chunker@latest
```

Ensure that your `GOBIN` directory is in your `PATH` for the installed binary to be accessible globally.

# Usage

```bash
chunker
```

- **inputFilePath**: Path to the input file that needs to be split.
- **outputPrefix**: Prefix for the output chunk files.
- **chunkSize**: Size of each chunk. Examples: 1KB, 5MB, 1GB.

## Example

```bash
chunker input.txt outputChunk 1MB
```

This command will split input.txt into approximately 1MB chunks named outputChunk_1, outputChunk_2, etc.

# Supported Size Units

- **B**: Bytes
- **KB**: Kilobytes (1024 bytes)
- **MB**: Megabytes (1024 KB)
- **GB**: Gigabytes (1024 MB)

# Feedback and Contributions

If you encounter any issues or have suggestions for improvement, please [open an issue](https://github.com/itpey/chunker/issues) on GitHub.

We welcome contributions! Fork the repository, make your changes, and submit a pull request.

# License

Chunker is open-source software released under the Apache License, Version 2.0. You can find a copy of the license in the [LICENSE](https://github.com/itpey/chunker/blob/main/LICENSE) file.

# Author

Chunker was created by [itpey](https://github.com/itpey)