cat /dev/null > /$foo where $foo = file

its hacky but it works :)

--
Guy Taylor
Obsidian Systems
Cell: 083 357 3438
E-mail: [EMAIL PROTECTED]

Please terminate paranoia() at your favourite recursion level.

PGP PUBLIC KEY BLOCK:
Available at ftp://lava.obsidian.co.za/pub/keys/guyspubkey

                                                                  
                                                                       

On Fri, 7 Jan 2000, Shrestha wrote:

> HI! Everybody,
> 
> Is there any command under linux to clear the contents of a file.
> 
> I don't want to delete the file but I want to delete everything which is
> inside that file.
> 
> Any help will be highly appreciated!!
> 
> Shrestha
> 
> 
> 
> --
> SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> To unsubscribe send email to [EMAIL PROTECTED] with
> unsubscribe in the text
> 

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to