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
Post a Comment