Columns 2, 3, and 4 all vary, so I need to split it based on all three values. I know how to do this using awk and close for one column, but I don't know how to extend it to three columns. Thank you so much in advance!!!
This just creates a bunch of empty text files. I'd like those text files to include the information from the original file as indicated in the original post. Thanks.
It will be much better if you can show us what exactly you did, what output you got in code tags rather than just simply saying "the code doesn't do what is requested"
Guru's code should work fine, I don't see any issues in it!
But I would also recommend to close the file, because if there are too many files opened, eventually awk may exceed a system limit on the number of open files in one process.
It is best to close each one when the program has finished writing it.
---------- Post updated at 07:00 PM ---------- Previous update was at 10:57 AM ----------
What if, instead of wanting to output the entire line, I wanted to output just the last column in the text files, but with with the same file names? so
1.10.1000.txt
And I tried Guru's code again, and it worked, I don't know why I was seeing empty text files. It also ran significantly faster. Sorry about that, Thanks Guru!!