fork(3) download
  1. #!/bin/bash
  2. s='root/etc/data.1.2.3^0
  3. root/etc/file.4.5.6^0
  4. root/etc/fileA.7.8.9^0'
  5. sed 's:root/etc/\(.*\)\^0$:\1:' <<< "$s"
Success #stdin #stdout 0s 4848KB
stdin
Standard input is empty
stdout
data.1.2.3
file.4.5.6
fileA.7.8.9