I think you can try with awk
awk -v OFS="\t" '$1=$1' file1
or sed if you prefer
sed 's/[:blank:]+/,/g' thefile.txt > the_modified_copy.txt
or even tr
tr -s '\t' < thefile.txt | tr '\t' ' ' > the_modified_copy.txt
or a simplified version of tr-solution proposed by Sam Bisbee
tr ' ' \\t < someFile > someFile
Jonathan Sep 14 '09 at 10:00 p.m. 2009-09-14 22:00
source share