日期:2014-05-16 浏览次数:20758 次
while read myline do echo $myline done < /etc/passwd
ecrane:!:300801:1:Eric Crane =ecrane@us.ibm.com:/home/ecrane:/usr/bin/ksh
while read myline do echo $myline|cut -d: -f1,6 done < /etc/passwd
while read myline do echo $myline|awk -F: '{print $1,$6}' done < /etc/passwd