Regarding this txt file, which is best described as a tab-delimited .txt file with empty lines between rows containing content:
One would think that running
cat goods.txt | tr "\t" "," > output.csv should cleanly convert the .txt file to .csv.
(as per this Stack Overflow solution)
However, I am observing values and text shifting into the wrong columns:
And in other cases, numbers being split up between columns:
I'm not sure what I'm overlooking? What is a correct way to achieve the file conversion so desired here?


csvformat -t goods.txt > goods.csv