bash shell script help

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

bash shell script help
  1. Unread #1 - Jan 21, 2020 at 12:34 PM
  2. holyev1l
    Joined:
    Nov 19, 2018
    Posts:
    154
    Referrals:
    0
    Sythe Gold:
    159

    holyev1l Active Member

    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? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site