fork download
  1. #!/bin/bash
  2.  
  3. sed -r ':
  4. s/([b-df-hj-np-tv-xz])(.*)([b-df-hj-np-tv-xz])/\u\3\2\u\1/
  5. t
  6. s/./\l&/g'
Success #stdin #stdout 0s 5076KB
stdin
a test case
well-done
reverse the consonants
stdout
a sect sate
nedl-lowe
setenne sne cohtosarvr