[quote]原帖由 "mocou"][/quote 发表:
结果如下:
[root@linux root]# cat dir.ls|sed 's/\(.*\)_\(.*\)\.\(.*\)/\2/'|sort -u|xargs|sed 's/ /,/g'
account,addrtype,ah,BALANCE,childlevel,CLASSIFY,CLUSTERIP,comment,condition,connbytes,connlimit,connmark,CONNMARK,connrate,conntrack,DNAT,dscp,DSCP,dst,dstlimit,ecn,ECN,esp,eui64,frag,FTOS,fuzzy,geoip,hashlimit,hbh,helper,hl,HL,icmp,icmpv6,IPMARK,ipp2p,iprange,ipv4options,IPV4OPTSSTRIP,ipv6header,layer7,layer7.c,length,limit,LOG,mac,Makefile,mark,MARK,MASQUERADE,matches,MIRROR,mport,multiport,NETLINK,NETMAP,NOTRACK,nth,osf,owner,physdev,pkttype,pool,POOL,psd,quota,random,realm,recent,REDIRECT,REJECT,ROUTE,rpc,rt,SAME,sctp,set,SET,sh,SNAT,standard,state,string,svn-commit.tmp,targets,TARPIT,tcp,TCPLAG,tcpmss,TCPMSS,time,tos,TOS,TRACE,ttl,TTL,u32,udp,ULOG,unclean,XOR
[root@linux root]#
很多大写字母,还有断行。。。  |