Hi all,
I’m trying to split out a large file into many files but am struggling to find the correct command:
My data is as follows:
subscriber,account_type,bill_date 447447447123,939,text,23, 447447447999,939,text,23, 447447447789,914,text,10, 447447447345,900,text,15,
I have over 2 million entries in this file and what i would like to do is save each data into a file depending on uniq 2nd and 4th column.
so the output of the files would be like:
cat 939_23.txt
447447447123,939,text,23,
447447447999,939,text,23,
cat 914_10.txt
447447447789,914,text,10,
cat 900_15.txt
447447447345,900,text,15,
Can anyone help with with a neat Perl one liner, or perhaps a for look command ?