Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to zero out a file in tcsh?



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







BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org