splitting text file into smaller ones

Hello

We have a text file with 400,000 lines and need to split into multiple files each with 5000 lines ( will result in 80 files)

Got an idea of using head and tail commands to do that with a loop but looked not efficient.

Please advise the simple and yet effective way to do it.

TIA
Prvn

take a look at the split command

split - split a file into pieces

Thank you for your quick reply. It worked great.

you might also want to take a look at csplit , if you have it