how to delete the second character "." from the line
what I have is this ( but its remove the first "." from output
uname -r | sed s'/\./ /'
2 6.18-164.2.1.el5PAE
while I need the following output
2.6 18-164.2.1.el5PAE
bashlinuxsed
how to delete the second character "." from the line
what I have is this ( but its remove the first "." from output
uname -r | sed s'/\./ /'
2 6.18-164.2.1.el5PAE
while I need the following output
2.6 18-164.2.1.el5PAE
Best Answer
Simply add N to the end of the command for it to match the Nth match, like this:
What do you need it for though?
From the
info
page onsed
: