file splitting

I have a file that I need to be broken up into many files. The file I have currently has:

1
2
3
4

and I need 4 separate files that contain that number. If you open up file1 it has the number 1 inside, etc, etc.

Problem is that the number of files can changed based on the information I receive, some days it could be 2 other days 8 the number is unknown.

Someone please assist.

There are several threads that address this topic. Please search the site.

Hi

in HP unix there is a command

split -l <number of lines> <filename>

Hope this helps. In case of further info, do a "man split"