From Colorant Zebra, 5 Months ago, written in Plain Text.
  1. #!/bin/bash
  2.  
  3. file="/path/to/file"
  4.  
  5. while IFS='\t' read -r line <&3
  6. do
  7.         echo "$line"
  8. done 3< "$file"
  9.  
  10.  
  11. My file to read contains words ending in 't':
  12. out
  13. cat
  14. blablat
  15. that
  16. without
  17.  
  18. The output I get from the script:
  19. ou
  20. ca
  21. blabla
  22. that
  23. without
captcha