/dumpzero

Drops null bytes (ASCII char 0) from the end of a file by processing it entirely and placing null regions that are enclosed by other ASCII characters

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Summary
-------
This program parses standard input for whitespace consisting entirely of 
null characters (i.e. ASCII character 0) and removes any that reside on
the very end while still maintaining those within the file.

Installation
------------

Assuming you have make and GCC installed with a proper toolchain:

# make dumpzero
# sudo cp dumpzero /usr/bin

Uninstallation
--------------

# sudo rm /usr/bin/dumpzero

Use
---

# dumpzero < file1 > file2
-OR-
# cat file1 | dumpzero > file2