Computing.Net > Forums > Linux > insert ',' after each word...

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.

insert ',' after each word...

Reply to Message Icon

Name: Six
Date: July 24, 2003 at 16:00:11 Pacific
OS: RedHat 8
CPU/Ram: 1ghz/256mb
Comment:

I'll ask this as clearly as possible...

I want to (automatically) add a comma to the end of every word and delete the space between each word of the output of a command.
example, I want this:
bash-2.05b# command
word1 word2 word3 word4 word5

to change to this:
word1,word2,word3,word4,word5


Is it possible?



Sponsored Link
Ads by Google

Response Number 1
Name: Jake
Date: July 24, 2003 at 16:53:22 Pacific
Reply:

command | sed "y/ /,/"


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 Linux Forum Home


Sponsored links

Ads by Google


Results for: insert ',' after each word...

heres how to multi os www.computing.net/answers/linux/heres-how-to-multi-os/4408.html

missing lilo www.computing.net/answers/linux/missing-lilo/23755.html

Multi-Boot Help www.computing.net/answers/linux/multiboot-help/13802.html