How to replace TAB in file

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

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Scroll to Top