fork download
  1. #!/bin/bash
  2.  
  3. file="${TMPDIR}/ips.txt"
  4. echo "10.0.0.1
  5. 10.0.0.2
  6. 10.0.0.3
  7. 10.0.0.4
  8. 10.0.0.5" > ${file}
  9. cat ${file}
  10.  
  11. while read ip; do
  12. echo "-- ${ip} --"
  13. done < ${file}
  14.  
  15. rm ${file}
Success #stdin #stdout 0s 4360KB
stdin
Standard input is empty
stdout
10.0.0.1
10.0.0.2
10.0.0.3
10.0.0.4
10.0.0.5
-- 10.0.0.1 --
-- 10.0.0.2 --
-- 10.0.0.3 --
-- 10.0.0.4 --
-- 10.0.0.5 --