Question:
How to replace tabs with commas in a file on Apple Mac?
The below will globally replace all tabs with commas in the file named file.csv.
perl -pi.old -e 's{\t+}{,}g' file.csv
This is useful when you want to open a tab delimited file within Apple Mac Numbers as it doesn't recognise tabs.