Skip to content

Instantly share code, notes, and snippets.

@alvinl
Created December 26, 2012 05:59
Show Gist options
  • Select an option

  • Save alvinl/4378278 to your computer and use it in GitHub Desktop.

Select an option

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

alvinl commented Dec 26, 2012

Copy link
Copy Markdown
Author

Usage

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

@ruunex

ruunex commented Aug 31, 2013

Copy link
Copy Markdown

go be useful

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