OPMHASH(1) | User Commands | OPMHASH(1) |
opmhash - Hasher for summary keywords in Eclipse files
opmhash: invalid option -- 'h' The purpose of the opmhash program is to load a deck and create a summary, by diffing two such summaries it is simple to determine if two decks are similar. For each keyword a hash of the normalized content is calculated. The output of the program will look like this:
Where the 'random' integer following each keyword is the hash of the content of that keyword. The hashing is insensitive to changes in white-space and comments and file location. At the bottom comes a total hash of the complete content. The hash of each keyword is insensitive to shuffling of keywords, but the total hash depends on the keyword order.
-l : Add filename and linenumber information to each keyword.
-s : Short form - only print the hash of the complete deck.
-S : Silent form - will not print any deck output.
It is possible to add multiple deck arguments, they are then scanned repeatedly, and the decks are compared. In the case of multiple deck arguments the exit status of the program will be zero if all are equal and nonzero in case of differences.
October 2022 | opmhash 2022.10 |