http://qs321.pair.com?node_id=707277


in reply to Re^5: greater efficiency required (ls, glob, or readdir?)
in thread greater efficiency required (ls, glob, or readdir?)

Oh, if you don't like the died message, replace it with
exit 1 if $?;
A few character strokes more, but still a very short line.

And no, the program won't be silent. "cat" is perfectly able to tell the user why it can't read the file.