读书人

linux shell 之read下令

发布时间: 2013-12-26 00:35:35 作者: rapoo

linux shell 之read命令

?

? ??

?

? ?

?

2、从文件中读取

??

? ??

#!/bin/bashcount=1cat testfile | while read linedo echo "line #$count: $line" count=$[ $count + 1 ]doneecho "finished processing the file"

?

?

?

读书人网 >UNIXLINUX

热点推荐