标签:
(1)#!/bin/bashwhile read linedo echo $linedone < file (2)#!/bin/bashcat file | while read linedo echo $linedone(3)for line in `cat file`do echo $linedone
shell 读取文件的每一行内容并输出
原文地址:http://www.cnblogs.com/emanlee/p/4318415.html