Skip to content

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

License

Notifications You must be signed in to change notification settings

thirdwheel/dumpzero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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


About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages