fork download
  1. #!/bin/bash
  2. while true
  3. do
  4. read line
  5. if [ $line -eq 42 ]
  6. then
  7. exit 0
  8. fi
  9. echo $line
  10. done
Success #stdin #stdout 0.01s 5500KB
stdin
1
2
10
42
11
stdout
1
2
10