fork download
  1. #!/bin/bash
  2. s="New York--1984 and counting.txt"
  3. echo "${s#*--}";
  4. sed 's/^[^-]*--//' <<< "$s"
Success #stdin #stdout 0s 4488KB
stdin
Standard input is empty
stdout
1984 and counting.txt
1984 and counting.txt