On Tue, 2004-04-20 at 13:49, H. D. Lee wrote: Tengkyu atas masukannya, saya dah coba tapi masih belum jalan, akhirnya saya coba seperti ini : ex test.txt -c :g/regexp/d -c :wq dan berhasil. TIMTOWTDI :-)
Mungkin kedua perintah dibawah perlu intermediate file, tapi sebenarnya vi/ex juga create temp file...
sed -e '/regex/d' file > $tmpf && cat $tmpf > file or grep -v 'regex' file > $tmpf && cat $tmpf > file
Yang betul2 FREE dari intermediate file:
dd obs=nnn file | salah satu grep/sed di atas > file
nnn >= sizeof(file)
tidak akam menbuat temp file, well kalau physical mem tidak mencukupi, temp core ---> swap space :)
-- +-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 GSM: +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
