Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2008 18:23:45 +0200
From:      Jonathan McKeown <jonathan+freebsd-questions@hst.org.za>
To:        freebsd-questions@freebsd.org
Subject:   Re: Unexepcted behavior from read and cat
Message-ID:  <200805131823.46029.jonathan%2Bfreebsd-questions@hst.org.za>
In-Reply-To: <C1DFB4E8F62B503C9A829107@utd65257.utdallas.edu>
References:  <C1DFB4E8F62B503C9A829107@utd65257.utdallas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 12 May 2008 20:59, Paul Schmehl wrote:
> I created a small list of IPs that I wanted to do digs on (because I'm lazy
> and don't want to do them one at a time.)
[snip]
> WTF?  Why do these utilities, which usually read all the lines in a file
> now only work once when run through dig?  Is there a way to feed dig a list
> of IPs and have it return each and every one of them?
>
> I tried dig +short -x -f iplist, but that returns nothing at all.
>
> Sure, I can edit the file and prepend +short -x to each line, but by then I
> might as well just do them individually.
>
> What am I missing?

The comedy solution:

lam -s '-x ' trydata | xargs dig +short

Any other ways to do this?

Jonathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805131823.46029.jonathan%2Bfreebsd-questions>