Create several files from one

good morning friends

I have a problem
, I have a file with 2 million records, but that can be variable, I need to split that file and drop several files in 500,000 thousand records, someone can help me with some unix shell code

thank you!!!

Similar questions have been answered umpteen number of times.
Try searching these forums for tag split .

You'll also have to define what you mean by a record .

2 Likes

if I have a file with 100 records, how can I make 10 files with 10 records each, that I need to do

what is a record?
man split for starters.

2 Likes

I need to split a file just that
if I have 10 records in a file I need to generate 10 files with 1 record each file

once again - what's a record?
Have you searched these forums as suggested previously?

rows

name_1
carlos
andre
smmit
andrea
jose

how can I make several files from one

have looked into man split yet?

2 Likes