Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2008 11:55:46 -0700
From:      Johan  Dowdy <jdowdy@ncircle.com>
To:        RW <fbsd06@mlists.homeunix.com>, <freebsd-questions@freebsd.org>
Subject:   Re: Unexepcted behavior from read and cat
Message-ID:  <C44F3242.9974D%jdowdy@ncircle.com>
In-Reply-To: <20080512215503.42926695@gumby.homeunix.com.>

next in thread | previous in thread | raw e-mail | index | archive | help
I think this one wins for brevity.



On 5/12/08 1:55 PM, "RW" <fbsd06@mlists.homeunix.com> wrote:

> On Mon, 12 May 2008 14:08:06 -0500
> Paul Schmehl <pauls@utdallas.edu> wrote:
> 
>> --On Monday, May 12, 2008 13:59:47 -0500 Paul Schmehl
>> <pauls@utdallas.edu> wrote:
>>> 
>>> 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?
>> 
>> Never mind.
>> 
>> This worked.
>> 
>> (read line; dig +short -x `echo $line`; while read line; do dig
>> +short -x `echo $line`; done) < iplist
>> 
> I tend to use "xargs -n1" with dig e.g
> 
> 
> cat iplist | xargs -n1 dig +short -x
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

-- 
Johan Dowdy - CISSP
Senior Systems Administrator
nCircle Network Security
 
415.318.2880

"Any sufficiently advanced technology is indistinguishable from magic."
-- Arthur C. Clarke




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C44F3242.9974D%jdowdy>