H0llyW00dzZ 38f52057c3 Update README.md (#3)
- [+] docs(README): update installation instructions to include repository cloning command and change directory command

Reviewed-on: #3
Co-authored-by: H0llyW00dzZ <h0llyw00dzz@pm.me>
Co-committed-by: H0llyW00dzZ <h0llyw00dzz@pm.me>
2025-01-09 15:05:52 +00:00
2024-11-11 02:05:27 +00:00
2025-01-09 15:05:52 +00:00
2024-11-11 09:16:23 +07:00

split.sh - File Splitter Script

This script splits a large text file into smaller files with a specified number of lines. It's useful for managing large datasets or logs.

Usage

  1. Clone the repository or download the script.

    git clone https://git.b0zal.io/H0llyW00dzZ/split.sh.git
    
  2. Make the script executable:

    cd split.sh
    chmod +x split.sh
    
  3. Run the script:

    ./split.sh
    
  4. Follow the prompts:

    • Enter the input file name (e.g., largefile.txt).
    • Enter the number of lines per file (e.g., 500000).
  5. Output:

    • The script will create files with a prefix output_ followed by a suffix (e.g., output_aa, output_ab, ...).

Requirements

  • Bash shell
  • split command available (usually pre-installed on Unix-like systems)

License

This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.

Description
This script splits a large text file into smaller files with a specified number of lines. It's useful for managing large datasets or logs.
Readme 34 KiB
Languages
Shell 100%