Computing.Net > Forums > Unix > replace comma with tab in vi?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

replace comma with tab in vi?

Reply to Message Icon

Name: stant
Date: February 12, 2004 at 15:04:39 Pacific
OS: Sun Solaris 5.8
CPU/Ram: 16GB
Comment:

Hello,

I have a comma-delimited file open in vi. How do I replace , with tab?

This :g/,/s//' '/g seems to work, but I'm not 100% sure.

Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: thepubba
Date: February 12, 2004 at 15:40:32 Pacific
Reply:

%s/,/<TAB>/g

Where <TAB> is actually a tab.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: replace comma with tab in vi?

Zsh as login shell, and shell in VI www.computing.net/answers/unix/zsh-as-login-shell-and-shell-in-vi/5785.html

control J in vi www.computing.net/answers/unix/control-j-in-vi/5398.html

question in vi www.computing.net/answers/unix/question-in-vi/4770.html