Bob Proulx <b...@proulx.com> wrote:
> I always recommend finding big files and truncating them first.  You
> can truncate a file using the shell by redirection nothing into it.

>  : > largelogfile.log

> Or you can use 'true' as the same thing since ':' is an alias for
> 'true'.  So shell programmers always tend to use : since that is the
> traditional value.  It isn't obvious to new people though.

If you're using a Bourne-type shell (sh, bash, etc.) you can even omit
the null command and whitespace, thereby saving an extra character or
two of typing ;-)

    >largelogfile.log

Chris


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/as46s8xko5....@news.roaima.co.uk

Reply via email to