#!/bin/bashs="dog 50_50_S5_Scalecat 10_RV_S76_Scalemouse 15_SQ_S81_Scale" sed 's/\([^S]*\)S.*/& \1/' <<< "$s"
Standard input is empty
dog 50_50_S5_Scale dog 50_50_ cat 10_RV_S76_Scale cat 10_RV_ mouse 15_SQ_S81_Scale mouse 15_
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!