#!/bin/bashs='abcd 10001.'perl -pe 's/(?!^).(?!$)/$&\n$&/g' <<< "$s"
Standard input is empty
ab bc cd d 1 10 00 00 01 1.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!