Split a huge 7 GB File Based on Pattern into 4 files

Print Friendly

By KishM

Hi,

I have a Huge 7 GB file which has around 1 million records, i want to split this file into 4 files to contain around 250k messages each.

Please help me as Split command cannot work here as it might miss tags..

Format of the file is as below

DATA
DATA
DATA
DATA
DATA
DATA
DATA


DATA
DATA
DATA
DATA
DATA
DATA
DATA


DATA
DATA
DATA
DATA
DATA
DATA
DATA

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

FavoriteLoadingAdd to favorites

Leave a Reply

Your email address will not be published. Required fields are marked *