Adblock breaks this site

bash shell script help

Discussion in 'Technology' started by holyev1l, Jan 21, 2020.

  1. holyev1l

    holyev1l Active Member

    Joined:
    Nov 19, 2018
    Posts:
    154
    Referrals:
    0
    Sythe Gold:
    159
    bash shell script help

    I need to list every string in a text file and generate the md5 hash for that string next to it on the same line.

    I can turn all strings into its md5 hash value but I'm not sure how to list the original string next to it.

    I've got

    file="/dictionary.txt"

    while read line
    do
    echo $line | md5sum | awk '{print $1}'
    done < dicitonary.txt
     
< SennHeiser HD 598SR + FiiO K3 | Cheap PC to get for 2 OSRS clients? >


 
 
Adblock breaks this site