Search Results

Search: Posts Made By: esolvepolito
9,819
Posted By esolvepolito
compare two lists on two files
I have two files A and B listing ip addresses
and all the ip addresses in B are in A, and A includes other ip addresses
now I want to get the list of the ip addresses that are in A but not in B...
2,678
Posted By esolvepolito
it works, thanks
it works, thanks
2,678
Posted By esolvepolito
oh, I'm not familiar with perl, if there is shell...
oh, I'm not familiar with perl, if there is shell thats better.
let me try it first, thanks



---------- Post updated at 07:31 AM ---------- Previous update was at 07:18 AM ----------

thanks...
2,678
Posted By esolvepolito
do you notice these two lines, the 3rd and the...
do you notice these two lines, the 3rd and the 7th lines

Host: 74.82.42.42 (ordns.he.net) Ports: 22/open/tcp//tcpwrapped///, 53/open/tcp//domain//PowerDNS 3.3/, ...
2,678
Posted By esolvepolito
thanks, but maybe my explanation is not clear in...
thanks, but maybe my explanation is not clear in the original post,
actually

the file is like this

# Nmap 5.51 scan initiated Wed Aug 22 18:42:27 2012 as: nmap -sS -P0 -O -sV -oN log -oX...
9,506
Posted By esolvepolito
the file is like this # Nmap 5.51 scan...
the file is like this

# Nmap 5.51 scan initiated Wed Aug 22 18:42:27 2012 as: nmap -sS -P0 -O -sV -oN log -oX log.xml -oG log.grep -append-output 74.82.42.42
Host: 74.82.42.42 (ordns.he.net) ...
2,678
Posted By esolvepolito
processing with awk
I have many lines like the following in a file(there are also other kinds of lines)

Host: 72.52.104.74 (tserv1.fmt2.he.net) Ports: 22/open/tcp//tcpwrapped///, 53/open/tcp//domain//PowerDNS 3.3/,...
9,506
Posted By esolvepolito
in the file, different lines have different...
in the file, different lines have different number of fields
how can you use

$ awk -F "\t" '{ print NF }' file2

?

can for each field, you haven't process the keyword




Use code...
9,506
Posted By esolvepolito
I have many lines like the following in a...
I have many lines like the following in a file(there are also other kinds of lines)

Host: 72.52.104.74 (tserv1.fmt2.he.net) Ports: 22/open/tcp//tcpwrapped///, 53/open/tcp//domain//PowerDNS 3.3/,...
9,506
Posted By esolvepolito
no , I need to do several processings for each...
no , I need to do several processings for each line
not just use awk over each line
9,506
Posted By esolvepolito
how to keep tab from being converted to space
Hi, I want to read lines from a file, and I'm using two methods
1 use

while read line
do
done<filename


2 use

line=`sed -n '3p' filename`


however, in both of them, I notice that...
1,994
Posted By esolvepolito
awk split lines without knowing the number of fields a-priori
I want to use awk to split fields and put them into a file
but I don't know the number of fields
for example, in the following line


Ports: 22/filtered/tcp//ssh///, 53/open/tcp//tcpwrapped///,...
1,340
Posted By esolvepolito
how to filter files with given format
Hi, all, I have files like:

nameserver 216.66.22.2 ; tserv1.ash1.ipv6.he.net. tserv13.ash1.ipv6.he.net.
nameserver 216.66.38.58 ;...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 02:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy