linux shell 之read命令?? ???? ??2、从文件中读取??? ??#!/bin/bashcount1cat testfile | while read lin
linux shell 之read命令
?
? ??
?
? ?
?
2、从文件中读取
??
? ??
#!/bin/bashcount=1cat testfile | while read linedo echo "line #$count: $line" count=$[ $count + 1 ]doneecho "finished processing the file"?
?
?
