Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/itpey/chunker
- Owner: itpey
- License: apache-2.0
- Created: 2023-12-31T21:35:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-02T13:09:19.000Z (9 months ago)
- Last Synced: 2024-10-31T17:44:54.246Z (3 months ago)
- Topics: 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
- Language: Go
- Homepage: https://github.com/itpey/chunker
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.# 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)