Instantly share code, notes, and snippets.
while read aline; do echo $aline some code.... done < targetFile.log
read 是系统自带的文件读取操作.