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.
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.