adi wrote:
On Fri, Jun 04, 2004 at 09:27:15AM +0000, Dion Sasmito wrote:

#!/bin/sh
cat porno.txt | while read site rest do
iptables -t filter -A FORWARD -d "$site" -j DROP
done


sebelum ada yang mengingatkan soal 'useless use of cat', saya duluin :-))

while read i; do whatever; done < prono.txt

Useless use of read & shell redir (for bashV2 only) ;)

for l in $(<file); do something with $l;done

--
+-R-| Mozilla 1.6 Gecko20040116 |-H-| Powered by Linux 2.4.x |-9-+
|/v\ Agus Budy Wuysang                            MIS Department |
| |  Phone:  +62-21-344-1316 ext 317    Mobile: +62-816-1972-051 |
+------------| http://www.fasw.co.id/person/supes/ |-------------+

--
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip dan info di http://linux.or.id/milis.php
FAQ milis http://linux.or.id/faq.php



Kirim email ke