Re: Unexepcted behavior from read and cat
- From: RW <fbsd06@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 12 May 2008 21:55:03 +0100
On Mon, 12 May 2008 14:08:06 -0500
Paul Schmehl <pauls@xxxxxxxxxxxx> wrote:
--On Monday, May 12, 2008 13:59:47 -0500 Paul SchmehlI tend to use "xargs -n1" with dig e.g
<pauls@xxxxxxxxxxxx> 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
cat iplist | xargs -n1 dig +short -x
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Unexepcted behavior from read and cat
- From: Johan Dowdy
- Re: Unexepcted behavior from read and cat
- References:
- Unexepcted behavior from read and cat
- From: Paul Schmehl
- Re: Unexepcted behavior from read and cat
- From: Paul Schmehl
- Unexepcted behavior from read and cat
- Prev by Date: Re: kernel panic FreeBSD 7.0 - Xorg
- Next by Date: Re: FBSD 6.2 Xeon 2.4ghz CPU and high load
- Previous by thread: Re: Unexepcted behavior from read and cat
- Next by thread: Re: Unexepcted behavior from read and cat
- Index(es):
Relevant Pages
|