file format change : top to bottom <> left to right
input file format:
100
150
200
300
500
output file format should be:
100,150,200,300,500
I need to apply this in reverse, too.
file format change : top to bottom <> left to right
input file format:
100
150
200
300
500
output file format should be:
100,150,200,300,500
I need to apply this in reverse, too.
Just replace the linefeeds by comma:
$ tr '\n' ',' < input.txt > output.txt
and reverse
$ tr ',' '\n' < input.txt > output.txt