How to zero out a file in tcsh?

Jerry Feldman gaf at gaf.blu.org
Fri Feb 7 09:31:44 EST 2003


On Thu, 6 Feb 2003 22:29:15 -0500
Derek Martin <blu at sophic.org> wrote:

> One method to do this regardless of how your shell handles redirection
> and what flavor of echo you have is this:
> 
>   rm filename; touch filename
I fully concur with Derek. This is full portable accross all versions of
Unix and Linux. As mentioned in the other posts, echo, while a shell
builtin may have different behavior depending on the shell. 


-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20030207/f6339481/attachment.sig>


More information about the Discuss mailing list