How to zero out a file in tcsh?

Ken Gosier ken at kg293.net
Thu Feb 6 21:27:33 EST 2003


Question: I know that I can zero out a currently existing file in ksh and
bash by typing

> filename

which will make filename have zero size. (Assuming noclobber is not
set.) Is there a similar construct in tcsh? When I try it I get 'invalid
null command.' I know I can do, for instance

echo -n < /dev/null > filename

Just curious, since we standardize on tcsh at work. Many thanks for any
help--

-- 
Ken Gosier
ken at kg293.net




More information about the Discuss mailing list