split string on colon in /bin/sh – unix.stackexchange.com

My dash script takes parameter in the form of hostname:port, ie: myhost:1234 whereas port is optional, ie: myhost I need to read host and port into separate variables. In the first case, I can do: ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "split string on colon in /bin/sh – unix.stackexchange.com"