Split and concatenate command used for files in Linux system

Split and Concatenate Linux Command

SPLIT Command
SPLIT command is used to split the large file into smaller file. It is very useful command if you want to place large file into small sizes and copy them parallel to other server then concatenate the file into one.

Syntax:

split -b Number [ k | m ]  [filename]

 
Example: Split the file into the 10gb size small size file.

split -b 10000m dumpfile.gz

It will give output as filename : xaa,xab,xac,xad,xae

Concatenate Command
Concatenate command is used for concatenate the split files by following Example:

Concatenate the file that is split

cat x* > dumpfile.gz

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.