tools

Creating a Hashfile

Adding a Hash

echo -n HASH >> hashes

The -n flag removes the trailing newline

Remove Trailing Newlines

Remove One:

truncate -s $(($(stat -c '%s' hashes)-1)) hashes

Remove All:

sed -i 's/$//' hashes

Tags

#cheat-sheet #cryptography