#!/bin/bashs='root/etc/data.1.2.3^0root/etc/file.4.5.6^0root/etc/fileA.7.8.9^0'sed 's:root/etc/\(.*\)\^0$:\1:' <<< "$s"
Standard input is empty
data.1.2.3 file.4.5.6 fileA.7.8.9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!