in reply to Re: sysread and null characters
in thread sysread and null characters

Some corrections and new ideas; you want to be able to output your results, right?
perl -F// -lane 'BEGIN{$/=\1024} $x[$_]++for@F; END{print $x[$_]for 0..9}' /path/to/pi
Too bad the -O command switch can't take \1024. That's a cool trick.

--
[ e d @ h a l l e y . c c ]