#!/bin/bashs='width: 9%, width: 22%, width: 100%' perl -pe 's/width: (\d+)%/sprintf "width_%03s", $1/ge' <<< "$s"
Standard input is empty
width_009, width_022, width_100
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!