I have a text file which contains around 9999999 lines. Here I'm pasting the few lines:
1874641047 Gazipur 1874646347 Jessore 1845105653 Chittagong 1845146123 Narayanganj 1845164162 Gazipur 1843908007 Jessore
Here 1st column contains cell phone numbers & 2nd column contains regions.
I wanted to write those data in a text files region wise, as like:
1874641047 Gazipur 1845164162 Gazipur
1874646347 Jessore 1843908007 Jessore
How can I do this in Linux terminal? Is there any way to do this like