Guys I have a question I have a txt file full of names and I want to hash to md5sum for all the names in the txt at once with one by command Can you help with that and thanks in advance.
Thank you very much for your help, but there is a problem when I make the command line convert the texts to the normal md5 encoder, but I want it in md5sum format because when I encode this name, for example, Jeremy Bowers with this command line
echo "Jeremy Bowers" | $(command -v md5sum || command -v md5)
encodes the name like this
(32cacbec4b918e2fd130fd68cf818ae5)
but with that command I used this
while read -r line; do printf %s "$line" | md5sum | cut -f1 -d' '; done < {filename} > {output filename}
it shows me all the names normal md5 encoding like this
(4aa63484b44863afe33675ffa7fea0e5)
It works for me but it shows me all the texts in the normal md5 encoding way and not md5sum so I want the same text command that does the same as the one I have this
echo "Jeremy Bowers" | $(command -v md5sum || command -v md5)
but I want it to encode all the names inside the text line by line and thank you in advance.
echo "Jeremy Bowers" | mdsum
versuswhile read -r line; do printf %s "$line" | md5sum | cut -f1 -d' '; done < {filename} > {output filename}
. The difference is the newline char added at the end byecho
.