Re: extract hostnames
- From: "Michael A. Cleverly" <michael@xxxxxxxxxxxx>
- Date: Thu, 28 Sep 2006 23:09:07 -0600
On Thu, 28 Sep 2006, tom wrote:
im looking for a script that can extract hostnames from a
list(txt,html) like this:
the-roadside.com 3 43197 1( 0)
202.218.17.12-OK
[etc...]
set hosts [list]
set fp [open path/to/the/file]
while {[gets $fp line] != -1} {
lappend hosts [lindex $line 0]
}
close $fp
puts $hosts
Michael
.
- Follow-Ups:
- Re: extract hostnames
- From: Bryan Oakley
- Re: extract hostnames
- From: Gerald W. Lester
- Re: extract hostnames
- References:
- extract hostnames
- From: tom
- extract hostnames
- Prev by Date: Re: possible to control activesync via tcom?
- Next by Date: Re: BWidget Tree double-click
- Previous by thread: extract hostnames
- Next by thread: Re: extract hostnames
- Index(es):
Relevant Pages
- Re: Dale Earnhardts grandson getting started....
... Hosts a fair amount of Cup and Busch testing of late. ... Puts
on a decent ... (rec.autos.sport.nascar) - Re: Dale Earnhardts grandson getting started....
... Hosts a fair amount of Cup and Busch testing of late. ... Puts
on a decent ... (rec.autos.sport.nascar) - Re: extract hostnames
... lappend hosts ... puts $hosts ... newline separated tcl lists.
... (comp.lang.tcl) - [TOOL] SSH Brute Forcer
... set dictionary [lindex $argv 0] ... set hosts ... foreach passwd
$passwords ... (Securiteam) - Re: extract hostnames
... lappend hosts [lindex $line 0] ... puts $hosts ... |"The
man who fights for his ideals is the man who is alive." ... (comp.lang.tcl)