I have a file containing about 1000 or so out of sequence numbers in a single column that I need to do the following with:
Convert the list of numbers from file "list.txt":
125
23
291
95
5
etc...
to a two-column list of all possible number pairings:
125 23
125 291
125 95
125 5
23 291
23 95
23 5
291 95
291 5
95 5
etc...
Can anyone provide me a script that would do this? I know it would involve putting the numbers into an array and then iterating over the array in a nested loop, but I have no idea how to actually code this.
Thanks in advance!!
In reply to help writing simple perl script by ashylarry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |