On 26 Aug 2000, Kai Gro�johann <[EMAIL PROTECTED]>
wrote:
> Somebody suggested `ls -d FILE | wc -l'. Maybe with a judicious
> `2>/dev/null' thrown in.
>
> What do you think?
Assuming that there isn't an ls out there that spits out the error
message onto stdout, rather than stderr, when the file does not exist,
yes.
Alternately, couldn't you bootstrap the thing with some Unix
assumptions: /tmp (or the content of ${TEMP} or ${TMP}) will be a
directory in which we can create files, and that creating a file in such
a directory...
Daniel
--
A slipping gear could let your M203 grenade launcher fire when you least
expect it. That would make you quite unpopular in what's left of your unit.
-- The US Army's magazine of preventive maintenance.