How to zero out a file in tcsh?

Mark Hertel mhertel at aptima.com
Thu Feb 6 21:37:32 EST 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
> 
> Just curious, since we standardize on tcsh at work. Many thanks for any
> help--
> 

how about just 'cat /dev/null > filename' ?


--Mark Hertel




More information about the Discuss mailing list