On Wed, Mar 13, 2002 at 01:43:41PM -0800, Rob Hudson wrote:
> I was just trying to search for a domain name of a friend's website. I
> have an idea of the block number he is in, so I wanted to do a quick
> bash look with nslookup to find the domain. But I'm stumped on the
> number range part.
>
> Can bash to a range [1-254] or 1..254 like perl?
>
> I tried many variations on the theme of:
>
> for i in 1..254; do nslookup 207.189.128.$i; done
>
it's not in the POSIX definition of a shell, but most support
brace expansion
% echo {1..5}
1 2 3 4 5
%
% echo /usr/local/lib/{mysql,kde2}
/usr/local/lib/mysql /usr/local/lib/kde2
%
--
<[EMAIL PROTECTED]>