Skip to content
/ msplit Public

Msplit is a python based file alternative of split command in Linux.

Notifications You must be signed in to change notification settings

efxtv/msplit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

msplit

About Script

The msplit.py script is a command-line utility designed to split large files into smaller parts based on different criteria such as size, number of parts, or number of lines. This script is useful for managing and processing large datasets efficiently.

Dependencies

To run msplit.py, ensure you have:

  • Python 3.x

No additional Python libraries are required beyond the standard library.

How to Use

You can use msplit.py from the command line with various options to split your files.

How to use msplit

list of options

s - Size

n - Number of parts

l - Number of lines

./msplit.py option GB,MB/Number/Parts <input_file> <output_prefix>
./msplit.py s 1GB largefile.txt output_part
./msplit.py n 5 data.csv output_part

How to use it as a tool?

Create a soft link

sudo chmod +x msplit.py
sudo ln -s $PWD/msplit.py /usr/local/bin/msplit
./msplit.py l 1000 textfile.txt output_part

About

Msplit is a python based file alternative of split command in Linux.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages