liinux中读取文件
shell 逐行读取文件
?
#! /bin/ksh
?
?exec 6<./test.txt
?while read -u6 line
?do
? echo 'prompt Creating '${line} >> a.txt
? echo '========================'>> a.txt
? echo '@@'${line} >> a.txt
?done
?exec 6<&-
发布时间: 2012-09-06 10:37:01 作者: rapoo
liinux中读取文件
shell 逐行读取文件
?
#! /bin/ksh
?
?exec 6<./test.txt
?while read -u6 line
?do
? echo 'prompt Creating '${line} >> a.txt
? echo '========================'>> a.txt
? echo '@@'${line} >> a.txt
?done
?exec 6<&-