#!/bin/baship='172.0.0.1'echo $ip | sed -E 's/\b([0-9]{1,3}\.){2}([0-9]{1,3}\.[0-9]{1,3})\b/XXX.ZZZ.\2/g'
Standard input is empty
XXX.ZZZ.0.1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!