I have a very large log file in the following format:
The first column is the source IP address. The entire file contains entries a finite set of source IP addresses, each having some frequency. In the example 198.28.0.0 (2), 244.48.0.0 (4), 4.48.0.0 (3).
I require a sed/awk script to take "Frequency" as the user input (or it can be hard-coded as well) and extract all the lines higher than or equal to that frequency. For example if user gives 3 as the input that entries from source IP's appearing more than or equal to 3 times should be in the output file. Hence the output file should contain entries from source IP 244.48.0.0 and 4.48.0.0 i.e.
Thanks and Regards
Moderator's Comments:
Please use code tags when posting data and code samples!
Last edited by Franklin52; 01-04-2011 at 03:19 AM..
Hi All,
I am stuck in one step..
I have one file named file.txt having content:
And SGMT.perd_id = (SELECT cal.fiscal_perd_id FROM $ODS_TARGT.TIM_DT_CAL_D CAL
FROM $ODS_TARGT.GL_COA_SEGMNT_XREF_A SGMT
SGMT.COA_XREF_TYP_IDN In (SEL COA_XREF_TYP_IDN From... (4 Replies)
I need help extracting specific lines in a text file. The file looks like this:
POSITION TOTAL-FORCE (eV/Angst)
-----------------------------------------------------------------------------------
1.86126 1.86973 1.86972 ... (14 Replies)
I have a table to data which one of the columns include string of text
from within that, I am searching to include few lines but not others
for example I want to to include some combination of word address such as (address.| address? |the address | your address) but not (ip address | email... (17 Replies)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)