1.vim read1.sh (read -n1: n1 meas one character; -p : p->print)
2.[root@cba ~]# chmod +x ./read1.sh :
3. read -t 5 -p : (timed out : 5 seconds)
4. "sorry,timed out . "
5.cat baidu.txt | while read line : ( cat : catenate )
1.vim read1.sh (read -n1: n1 meas one character; -p : p->print)
2.[root@cba ~]# chmod +x ./read1.sh :
3. read -t 5 -p : (timed out : 5 seconds)
4. "sorry,timed out . "
5.cat baidu.txt | while read line : ( cat : catenate )