perl -pe'BEGIN { $/ = \(64*1024); } s/\0+//g' infile | line_reading_sc +ript.pl [download]
In reply to Re^3: hang caused by read / readline? by ikegami in thread hang caused by read / readline? by grepdashv