The thing is it is not working under tcsh , while I invoked bash , and did the same thing which you have shown , it worked , But I did not understand why it did not work under tcsh ... Can any please throw light on this .... Thanks, Nikhil -----Original Message----- From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]On Behalf Of Karasik, Vitaly Sent: Thursday, December 16, 2004 5:10 PM To: General Red Hat Linux discussion list Subject: RE: nullifying file content.. well, there is noclobber option which prevent overwriting: http://unixhelp.ed.ac.uk/environment/env7.html > -----Original Message----- > From: redhat-list-bounces@xxxxxxxxxx > [mailto:redhat-list-bounces@xxxxxxxxxx]On Behalf Of Mulley, Nikhil > Sent: Thu, December 16, 2004 1:30 PM > To: General Red Hat Linux discussion list > Subject: RE: nullifying file content.. > > > I tried it , but was no use > $>mylog.log > mycron.log: File exists > $ > :( > Thanks, > Nikhil > > -----Original Message----- > From: redhat-list-bounces@xxxxxxxxxx > [mailto:redhat-list-bounces@xxxxxxxxxx]On Behalf Of Karasik, Vitaly > Sent: Thursday, December 16, 2004 3:50 PM > To: General Red Hat Linux discussion list > Subject: RE: nullifying file content.. > > > > filename > > > -----Original Message----- > > From: redhat-list-bounces@xxxxxxxxxx > > [mailto:redhat-list-bounces@xxxxxxxxxx]On Behalf Of Mulley, Nikhil > > Sent: Thu, December 16, 2004 12:16 PM > > To: redhat-list@xxxxxxxxxx > > Subject: nullifying file content.. > > > > > > Hi , I have some 400MB file in my home dir , How do I > > remove /clear the file content immediately with in a single > > command or should I cat it to /dev/null . > > Can any body please tell me HOWTO... > > °v° > > /(_)\ > > ^ ^ > > > > -- > > redhat-list mailing list > > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=subscribe > > https://www.redhat.com/mailman/listinfo/redhat-list > > > ************************************************************** > ********************* > Information contained in this email message is intended only > for use of the individual or entity named above. If the > reader of this message is not the intended recipient, or the > employee or agent responsible to deliver it to the intended > recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly > prohibited. If you have received this communication in error, > please immediately notify the postmaster@xxxxxxx and destroy > the original message. > ************************************************************** > ********************* > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > *********************************************************************************** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@xxxxxxx and destroy the original message. *********************************************************************************** -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list