[GRLUG] Clear the content of a file without deleting it

kyle victor computerguy.kyle at gmail.com
Thu Dec 29 11:24:22 EST 2005


about 10 seconds after i hit send i found it

: > filename

thanks though

On 12/29/05, kyle victor <computerguy.kyle at gmail.com> wrote:
>
> i know there is a command that will clear the content of a file without
> deleting it, but i can not remember what it is
>
> i know i have done this on a log file while on the phone with a Oracle
> tech support person
>
> i have very large error_log on this test apache box, and i am trying to
> debug whats right with my script
>
> i know tail works to see the last few lines
>
> but it would be nice to know the command that just wipes that log clean,
> without deleting it and recreating it
>
> any body know the command i an thinking of?
>
>
> thanks
> --
> Kyle Victor MCSA/MCSE/CCNA/Linux +/RHCT
>
> visit Kyle's website at:
> http://computerguykyle.gotdns.com




--
Kyle Victor MCSA/MCSE/CCNA/Linux +/RHCT

visit Kyle's website at:
http://computerguykyle.gotdns.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://grlug.org/pipermail/grlug/attachments/20051229/0bef9e5d/attachment.htm


More information about the grlug mailing list