Skip to content

Instantly share code, notes, and snippets.

@boywhoroared
Created June 6, 2011 15:41
Show Gist options
  • Save boywhoroared/1010489 to your computer and use it in GitHub Desktop.
Save boywhoroared/1010489 to your computer and use it in GitHub Desktop.
Truncate a file via Windows CLI
echo. > errors.log
@boywhoroared
Copy link
Author

Truncates a file by just overwriting it with a blank line. errors.log can be replaced with name or path of any file you wish to truncate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment