Replace tab with comma using sed on MacOS 水 14 6月 2017 mac os doesn't recognize \t as tab charactor. sed -e 's/[[:cntrl:]]/,/g' text