#!/bin/bashs=' 00018342 0000 dc.b 11010101b'sed 's/\b\([01]\+\)b\b/%\1/g' <<< "$s"
Standard input is empty
00018342 0000 dc.b %11010101
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!