I want to use regex in bash at line of variable assignment
e.g.
oldip="14\.130\.31\.172"
oldip_a="14.130.31.172" //How to use regex on this line.
How to use regex to del all '\' in $oldip? Then assign to new value to $oldip_a.
Do you have any idea?