SysAdmin

How to replace TAB in file

JJ
Jobin Joseph · Founder and CEO
·Published 18 December 2014·1 min read

If you have a large file and you want to replace TAB with a comma or a new Text. Please use the below command from a Linux Bash Shell

sed 's/t/NEWTEXT/g' inputfile.txt > outfile.txt

Eg: Replace TAB to Comma
sed 's/t/,/g' inputfile.txt > outfile.txt

Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →