#!/bin/bash

target="$1"

echo searching for $target

# read each line of a file or output stream
while read line
do
    hash="$(echo -n "$line" | md5)"
    if echo $hash | grep $target$;
    then
       echo $line
    fi
done

Add shell script to search for md5 strings that end with first argument
Add shell script to search for md5 strings that end with first argument

File named and inspired by [/u/rschaosid's post for 73](http://www.reddit.com/live/thjep4nr9895/updates/8af45cca-4aab-11e4-a39f-12313d16682e)

Usage example: tr -d '\r' < live_count_md5.txt.adjectives | sed 's/^/Okay, but time machines are so /' | sed 's/$/!/' | ./md5nder.sh 124
