Wanted to trim trailing nulls from a biggish partition file. Didn't find a good ready made tool for it, so I made one. Uses grep to find the last non null character and then truncates the file after it.
Updated: Now works also when the file contains only nulls. Backup notice added.
---------------------------------------------------- Trailing Nulls Trimmer Bat by CXZa https://cxzstuff.blogspot.com/ ---------------------------------------------------- Usage: To trim, drop a file to be Trailing Nulls Trimmed over this batch file. To restore the nulls, run another batch file created. Tip: Put bat's shortcut into the SendTo-folder. Backup the file before using this if it's important! ---------------------------------------------------- Press any key to close this window . . .
No comments:
Post a Comment