首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

liinux中读取资料

2012-09-06 
liinux中读取文件shell 逐行读取文件?#! /bin/ksh? ?exec 6./test.txt?while read -u6 line?do? echo pr

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<&-

热点排行