1

[Solved] intelligent splitting?

view story
linux-howto

http://www.unix.com – Hi, I want to split a file into multiple ones, with a new file for every line in the old file. Typically it is in this format Code: 0.25 20 35.7143 0.5 31 55.3571 0.85 3 5.35714 1.3 2 3.57143 I can make new files by using split or other simple awk commands. But sometimes, the file is like this Code: 0.25 20 35.7143 0.5 31 55.3571 1.3 2 3.57143 or Code: 0.25 20 35.7143 Even in these cases I want place holder files to be created. So even for just one row, I want four files, where three will be empty. How do I do this? Thanks a lot. (HowTos)