Hey monks,
I'm trying to transform some data like so:
imagine I have many lines like 1:A,2:B,3:C,4:D,5:E
I want to print everything that starts with 1 onto line 1 of my output file,
everything that starts with 2 onto line 2, etc.
Simply storing the info in arrays is not an option as it will use an astronomical amount of RAM to do this (30GB +). I suppose I could create 5 temp files and print the temp files to my outfile as one solution, but I'm sure there's a more elegant solution that someone's aware of.
Any ideas?