How to zero out a file in tcsh?

Bob Keyes bob at sinister.com
Thu Feb 6 22:14:03 EST 2003


On Thu, 6 Feb 2003, Ken Gosier wrote:

> 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


:>filename






More information about the Discuss mailing list