fork(22) download
  1. #!/bin/bash
  2.  
  3. cat << EOF | awk '{ sub(/REPLACE/, ++i) } 1'
  4. text REPLACE
  5. text REPLACE
  6. text REPLACE
  7. text REPLACE
  8. EOF
Success #stdin #stdout 0s 5884KB
stdin
Standard input is empty
stdout
text 1
text 2
text 3
text 4