随笔分类 -  awk

摘要:转成txt格式最大年龄 1 BEGIN{2 FS="[()]";max=03 }4 {5 if(max<substr($4,6,2)){max=substr($4,6,2);name=substr($1,9)}6 }7 END{8 print max,name9 }综合小例子 1 #!/usr/bin/bash 2 #awk [ -F re] [parameter...] ['prog'] [-f progfile][in_file...] 3 # BEGIN { x=0 }/^$/{ x=x+1 }END{ print "I found & 阅读全文
posted @ 2012-12-06 18:46 hhhyde 阅读(127) 评论(0) 推荐(0)