Skip to content

Instantly share code, notes, and snippets.

@alvinl
Created December 26, 2012 05:59
Show Gist options
  • Save alvinl/4378278 to your computer and use it in GitHub Desktop.
Save alvinl/4378278 to your computer and use it in GitHub Desktop.
Generates md5 hash per line in a given file
#!/bin/bash
while read line
do echo -n $line|md5
done < $1
@alvinl
Copy link
Author

alvinl commented Dec 26, 2012

Usage

Gives results to terminal
./md5.sh file
Export results to another file
./md5.sh file > results.txt

@ruunex
Copy link

ruunex commented Aug 31, 2013

go be useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment