17 Mar
2022
17 Mar
'22
14:31
On 17.03.22 15:16, Knurpht-openSUSE wrote:
Op donderdag 17 maart 2022 15:08:28 CET schreef Patrick Shanahan:
I need to escape the periods in some ip addresses.
I need xc=111.111.111.111 to become 111\\.111\\.111\\.111
sed appears (or not) to be the proper utility but I cannot get the correct syntax.
tks
IP=111.111.111.111 xc=`echo "${IP//./}" `
ITYM ${IP//./\\\\.} and ... no need for the echo: IP=${IP//./\\\\.} Josef -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nürnberg Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev