bug-bash
[Top][All Lists]
Advanced

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

Re: variable creation


From: Felipe Kellermann
Subject: Re: variable creation
Date: Fri, 31 Dec 2004 00:52:55 -0200 (BRDT)
User-agent: Pine <http://www.washington.edu/pine/>

On Fri, 31 Dec 2004 9:25am  +0900, List User wrote:

> then somehow I want to be able to use $IP_$each but of course bash doesn't
> like this.
> 
> Can anyone help me out?

This question has nothing to do with bash and a better place for such a 
question would be comp.unix.shell.  Anyways, I'll be OK trying this:

for each in 81 82 83 84 ; do
  eval IP_${each}=$(nmap -sV -v -v -O 192.168.2.$each)
done

-- 
Felipe Kellermann




reply via email to

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