經安全檢測,此網站為安全網站,請放心前往原始網址!

bash shell script read file line by line.

while read line do value=`expr $value + 1`; echo $value; done < "myfile" echo $value; Note: This example just counts the number of lines, I actually desire to do more complex processing than this though, so 'wc' is not an alternative, nor is perl im afrai

www.linuxquestions.org

網址安全性掃描由 google 提供