Unexepcted behavior from read and cat
Jonathan McKeown
jonathan+freebsd-questions at hst.org.za
Tue May 13 16:23:18 UTC 2008
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
More information about the freebsd-questions
mailing list