bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with a "for"


From: Jon Seymour
Subject: Re: Problem with a "for"
Date: Tue, 7 Jul 2009 17:12:08 -0400

There are at least 3 things wrong with your snippet.

Try:

IPS=(( 89.17.206.180 89.17.206.185 89.17.206.186 89.17.206.187 ))

for k in ${IPS[@]}
do
   nmap -p 22 $k
done

jon.

On 07/07/2009, at 4:55 AM, tirengarfio <tirengarfio@hotmail.com> wrote:

IPS={89.17.206.180,89.17.206.185,89.17.206.186,89.17.206.187}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]