fork(1) download
  1. #!/bin/bash
  2. echo "xxx yyyxxx" | perl -pe '$c+=s/yyy/zzz/; END { $?=$c }' && echo "No replacement"
Runtime error #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
xxx zzzxxx