Partially truncating log file contents based on size

387 Views Asked by At

I have log file abcd.log file of around 2GB of size, I need to keep latest contents of only 200MB size and delete previous contents by using Windows in-built tool/ command line only.

What I found is to totally truncate the file by copy, echo or touch command but these are not for my requirement.

0

There are 0 best solutions below