2012年7月5日 - Possible Duplicate: Looping through the content of a file in Bash? ... One way would be: while read NAME do echo "$NAME" done < names.txt.
stackoverflow.com