Linux Split & Join Large File

Split

split -b 700M large.dat# this will produce
# xaa 700M
# xab 700M
# xac 600M
split -b 700M large.dat small.dat.x# this will produce
# small.dat.xaa
# small.dat.xab
# small.dat.xac
The  SIZE  argument  is  an  integer  and  optional  unit  (example: 10K is 10*1024).  Units areK,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000).

Join

cat x* > large.dat
cat xa{a..c} > large.dat

--

--

--

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Recovering Data From Windows Server 2019: Backup, Restore, Reset

Odoo 12 Extra Add-ons such as Purchase Order Archive, Automatic Payroll Generation, and Project —…

How To Connect Perforce and Jira

Everything You Always Wanted To Do in Table Scan

Securing your APIs with Azure API Management Service. A Dummies Guide.

What is MongoDB ?

Day 10 of Game Dev: How to create a cooldown feature in Unity!

Traps for your opponent ? php scripts in images !

Tactics, Techniques and Procedures.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin FOO

Kevin FOO

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

More from Medium

Understanding C Static Libraries

Copying files to and from remote server using ssh

type in terminal: man scp

Compiling C files with gcc, step by step

Print Works As Return Statement When Fetching Values In Bash From Python Scripts