Skip to main content
1 of 3
Lambert
  • 12.8k
  • 2
  • 28
  • 35

Just while read line; do for word in ${line[@]}; do echo $word; done; done < test.txt will split up the file word by word. Change the echo to whatever you want to do with the words.

Lambert
  • 12.8k
  • 2
  • 28
  • 35