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

Re: Flush file contents




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 determined by the ideas that he adopts....
> The genuine history of mankind is the history of ideas. It is ideas
> that distinguish man from all other beings. Ideas engender social
> institutions, political changes, technological methods of production,
> and all that is called economic conditions.... Ideas determine what
> are to be considered more and less satisfactory conditions and what
> means are to be resorted to alter them. -- Ludwig von Mises
>     Rick Pasotto    rick@niof.net    http://www.niof.net
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

**********************

Thanks, that does the job.
-Rick



Reply to: