2013-07-23 [Linux] Bash script 讀檔 5621 0 Linux 摘要:[Linux] Bash script 讀檔 #! /bin/bash filename=XXX ## 讀檔 word by word for WORD in `cat $filename` do echo $WORD done ## 讀檔 line by line while read LINE do echo $LINE done < $filename bashLinuxShell 回首頁