fork(2) download
  1. #!/bin/bash
  2. ip='172.0.0.1'
  3. echo $ip | sed -E 's/\b([0-9]{1,3}\.){2}([0-9]{1,3}\.[0-9]{1,3})\b/XXX.ZZZ.\2/g'
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
XXX.ZZZ.0.1