x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Evgeney
Evgeney Page Icon Posted 2007-03-12 3:22 PM
#
Status:
how do you clear a file using CAT command? i need to preserve the file itself, but empty it... it's a log file, just got too big..
 Top of the page
toganet Page Icon Posted 2007-04-11 10:13 AM
#
Avatar image of toganet
H/PC Newbie

Posts:
9
Location:
North Tonawanda, NY
Status:
The easier way may be just to remove the file & recreate a new, empty one. You can do this using rm and touch like so:

rm {filename}; touch {filename}
 Top of the page
sophisticatedleaf Page Icon Posted 2007-04-12 9:06 PM
#
Avatar image of sophisticatedleaf
H/PC Elder

Posts:
2,294
Location:
Sunny California
Status:
I swear that I already answered this question. Oh yeah, that's because you already asked it here:

http://www.hpcfactor.com/forums/forums/thread-view.asp?tid=8338&posts=2&start=1

Don't waste our time.

Edited by ProgramSynthesiser 2007-04-12 9:08 PM
 Top of the page
Jump to forum:
Seconds to generate: 0.140 - Cached queries : 40 - Executed queries : 29