linux - how to remove all occurences of dot in a string in a shell script? -


e.g hostname = "test.test.test", after removing result should "testtesttest"

you can pipe into

tr -d '.' 

but best way of doing not use external command , use shell built in.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -