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,server4
I 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.