Article 5T2V4 help with xargs and sed

help with xargs and sed

by
sam_nyc
from LinuxQuestions.org on (#5T2V4)
Good morning,

Quick question on xargs and sed. How to change the output of the file to line by line. Pls. see the example below.

Code:myFile.txt
server1,server2,server3,server4I want the output to look like this. I don't need the comma and needs to read line by line.
Code:server1
server2
server3
server4
Code:cat /tmp/myFile.txt |xargs | sed 's / /,/g' Not working.latest?d=yIl2AUoC8zA latest?i=vb2oNeBqkus:9-Yb8v-trEE:F7zBnMy latest?i=vb2oNeBqkus:9-Yb8v-trEE:V_sGLiP latest?d=qj6IDK7rITs latest?i=vb2oNeBqkus:9-Yb8v-trEE:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments