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?



Derek D. Martin writes:
| On Thu, Feb 06, 2003 at 09:27:33PM -0500, Ken Gosier wrote:
| > Question: I know that I can zero out a currently existing file in ksh and
| > bash by typing
|
|   echo "\c" > filename
|
| You may need to use the -e option of echo to enable shell escape
| sequences.  For example, bash requires this; i.e.:
|
|   echo -e "\c" > filename

Not really.  All that bash requires is:

  >filename

You can use the echo command if you like to type.  (And it does
come in handy when you want to put some text into the file. ;-)

Too bad that the csh clones don't permit an empty command. This
comes in handy in all sorts of situations.






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