Training scripts

W M Brelsford k2di2 at att.net
Wed Jan 28 05:05:11 CET 2004


On Tue Jan 27 2004 at 09:47 PM -0500, David Relson wrote:
> On Tue, 27 Jan 2004 20:10:35 -0500
> Matej Cepl wrote:
> 
> > On Tuesday 27 of January 2004 16:50, Boris 'pi' Piwinger wrote:
> > > >Make file empty (zero length).
> > > 
> > > OK, so just `touch filename`.
> > 
> > As far as I am aware, touch never touches a content of the file.
> > 
> > Matej
> 
> A good way to empty a file is:  "cat /dev/null > file".  The file
> retains its attributes (owner and group and permissions) and the length
> becomes zero.

Or simply "> file".

-- 
Bill Brelsford
k2di2 at att.net




More information about the Bogofilter mailing list