awk 'BEGIN{FS="\n";RS="exit\n"}{print substr($1,8,length($1)-11),$6,$7,$11}' urfile|tr -s ' '
li2002 發(fā)表于 2011-05-19 09:54
回復 ywlscpl
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
Sourcing //.profile-E ...
貪睡的小豬 發(fā)表于 2011-05-19 17:03
歡迎光臨 Chinaunix (http://www.72891.cn/) | Powered by Discuz! X3.2 |