On Fri, Jun 04, 2004 at 11:53:27AM +0700, Agus Budy Wuysang wrote:
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

hi..hi.. masa sih useless. cara kedua menyebabkan boros fork() ... $(...) menyebabkan shell forks a new shell.

tapi memang cara pertama perlu multiple read() sejumlah
baris yang dibaca, cara kedua hanya single pass read()
sampai buffer size limit (kali ...).

Salam,

P.Y. Adi Prasaja


-- 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