I have a very huge file containing numbers only.file - 1232122342341232412432235453443And want to pair each line with all others. Output like below123212,234234123212,12324123212,1243223123212,5453443234234,123212234234,12324234234,1243223234234,545344312324,12321212324,23423412324,124322312324,54534431243223,1232121243223,2342341243223,123241243223,54534435453443,1232125453443,2342345453443,123245453443,1243223since the input file contains more than 50L records. so doing it via a loop will be a costly operation.
Cost-efficiently pair each line of a file with all others
text processing