symbol count in a text file [iptables log]

M.W. Chang mwchang
Mon May 17 11:37:59 PDT 2004


I could figure this one out. but how to list all possible combinations 
of DPT=9999 in a text file? There should be an existing shell util that 
will do something like this:

select distinct DPT=* from textfile

then I need to direct each combination into a file and apply wc on it to 
produce a distribution

> grep DPT=9999 /var/log/messages | wc

-- 
   .~.    Swiftly. Silently. Invisibly. In Linux we trust.
  / v \   news://news.hkpcug.org
/( _ )\  http://www.linux-sxs.org
   ^ ^    2.4.19 10:45pm up 1 day, 3:14, 0 users, load average: 1.00, 
1.00, 1.00



More information about the Linux-users mailing list