Re: Использование AWK
Timur S. Sattarov -> debian-russian@lists.debian.org @ Wed, 21 Nov 2007 13:18:10 +0500:
>> Interesting ports on 207.97.83.2 <http://207.97.83.2>:
>> PORT STATE SERVICE
>> 21/tcp filtered ftp
>> 3306/tcp filtered mysql
>>
>> Interesting ports on host-207-97-83-40.smartapps.net
>> <http://host-207-97-83-40.smartapps.net> (207.97.83.40
>> <http://207.97.83.40>):
>> PORT STATE SERVICE
>> 21/tcp filtered ftp
>> 3306/tcp filtered mysql
>>
[...]
TSS> grep "^Interesting ports on" file | awk '{print $4}'
Для второго вхождения это неверно.
--
Artem Chuprina
RFC2822: <ran{}ran.pp.ru> Jabber: ran@jabber.ran.pp.ru
Тормоз - тоже механизм, только медленный совсем.
Reply to: