From Sludgy Mosquito, 1 Year ago, written in Plain Text.
  1. #!/bin/bash
  2.  
  3. file="/path/to/file"
  4.  
  5. while read -r line <&3
  6. do
  7.         echo "$line"
  8. done 3< "$file"
  9.  
  10. Sample file contains:
  11.  
  12.         out
  13.         cat
  14. here
  15.                 example
  16.        
  17. Output:
  18.  
  19. out
  20. cat
  21. here
  22. example
  23.  
captcha