Re: Flush file contents

2004-01-07 Thread Derrick 'dman' Hudson
On Wed, Jan 07, 2004 at 03:02:30PM -0500, Kevin Mark wrote: | On Wed, Jan 07, 2004 at 01:55:29PM -0500, Rick Pasotto wrote: | > On Wed, Jan 07, 2004 at 12:42:33PM -0600, Rick Weinbender wrote: | > > Is there a command to flush or empty the contents | > > of a file? | > > I would like the empty file

Re: Flush file contents

2004-01-07 Thread Kevin Mark
On Wed, Jan 07, 2004 at 01:55:29PM -0500, Rick Pasotto wrote: > On Wed, Jan 07, 2004 at 12:42:33PM -0600, Rick Weinbender wrote: > > Is there a command to flush or empty the contents > > of a file? > > I would like the empty file to retain it's attributes and rights. > > cat /dev/null > file > Hi

Re: Flush file contents

2004-01-07 Thread Paul Morgan
On Wed, 07 Jan 2004 12:42:33 -0600, Rick Weinbender wrote: > Is there a command to flush or empty the contents > of a file? > I would like the empty file to retain it's attributes and rights. > > Thanks, > -Rick Simple: >file where "file" is your filename. man bash /^REDIRECTION for more inf

Re: Flush file contents

2004-01-07 Thread Morten Bo Johansen
On Wed, 07 Jan 2004 12:42:33 -0600 Rick Weinbender wrote: > Is there a command to flush or empty the contents > of a file? > I would like the empty file to retain it's attributes and rights. $ >file Morten -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Tr

Re: Flush file contents

2004-01-07 Thread Monique Y. Herman
On Wed, 07 Jan 2004 at 18:42 GMT, Rick Weinbender penned: > Is there a command to flush or empty the contents of a file? I would > like the empty file to retain it's attributes and rights. > > Thanks, -Rick > > cat /dev/null > filename -- monique -- To UNSUBSCRIBE, email to [EMAIL PROTEC

Re: Flush file contents

2004-01-07 Thread Rick Weinbender
Rick Pasotto wrote: > On Wed, Jan 07, 2004 at 12:42:33PM -0600, Rick Weinbender wrote: > > Is there a command to flush or empty the contents > > of a file? > > I would like the empty file to retain it's attributes and rights. > > cat /dev/null > file > > -- > The choices a man makes are determin

Re: Flush file contents

2004-01-07 Thread Bijan Soleymani
On Wed, Jan 07, 2004 at 12:42:33PM -0600, Rick Weinbender wrote: > Is there a command to flush or empty the contents > of a file? > I would like the empty file to retain it's attributes and rights. I don't know about a program, but this is how to do it in perl: #!/usr/bin/perl if(!$ARGV[0]){ p

Re: Flush file contents

2004-01-07 Thread Rick Pasotto
On Wed, Jan 07, 2004 at 12:42:33PM -0600, Rick Weinbender wrote: > Is there a command to flush or empty the contents > of a file? > I would like the empty file to retain it's attributes and rights. cat /dev/null > file -- The choices a man makes are determined by the ideas that he adopts The

Flush file contents

2004-01-07 Thread Rick Weinbender
Is there a command to flush or empty the contents of a file? I would like the empty file to retain it's attributes and rights. Thanks, -Rick -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]