I have a .txt file with 1 billion items separated by commas. I want to be able to read the file.txt file, allow my script to read the commas, copy the item before the comma into a new file, and start a new line after every comma.
Example of the current text file format:
one, twenty one, five, one hundred, seven, ten, iwoi-eiwo, ei123_32323 ...
Desired output:
one,
twenty one,
five,
one hundred,
seven,
ten,
iwoi-eiwo,
ei123_32323,
......
any suggestion?