我是程式白癡,所以要做筆記抄別人的東東 :) 逐行讀入 test_file while read -r line do echo $line done < test_file 或 cat test_file | while read line do echo $line done
blog.yam.com