Guy Taylor <[EMAIL PROTECTED]> uttered the following thing:
> 
> cat /dev/null > /$foo where $foo = file
> 
> its hacky but it works :)

or just:

> $file

the redirect under most shells truncates a file if there's 
nothing to the left of it.

-- 
BB - Random Network Person
--
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