#!/bin/bash sed -r ':s/([b-df-hj-np-tv-xz])(.*)([b-df-hj-np-tv-xz])/\u\3\2\u\1/ts/./\l&/g'
a test case well-done reverse the consonants
a sect sate nedl-lowe setenne sne cohtosarvr
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!