Thanks. One last question.
Here's a file with records separated with two tabs as shown below. I am trying to replace the tabs with just ", "(comma space)
'aaa' 'bbb'
to
'aaa', 'bbb'
Tried the below lines:
sed 's/[\t]/, /' file1.txt > file2.txt
sed "s/ */, /" file1.txt > file2.txt
They are substituting a character at the beginning of line.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.