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

Re: Flush file contents



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 info.

-- 
....................paul

Programming without a hex editor is like watchmaking without a hammer.




Reply to: