fork download
  1. #!/bin/bash
  2. echo " IN=../files/d
  3. out=../files/d.txt
  4. dataload
  5. name" | grep -oP '/files/\K[^.]+'
  6.  
  7. echo
  8.  
  9. echo " IN=../files/d
  10. out=../files/d.txt
  11. dataload
  12. name" | perl -nle 'print $& if m{/files/\K[^.]+}'
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
d
d

d
d