X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2115626711dd85185d075865c8fa3294f884e046..1f947c4b09f79686adfce929d217a189286dd9b9:/client/eml2UPPER.sh diff --git a/client/eml2UPPER.sh b/client/eml2UPPER.sh new file mode 100644 index 00000000..a28ae22a --- /dev/null +++ b/client/eml2UPPER.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Andrei Costin , 2011 +# eml2UPPER.sh +# Converts PM3 Mifare Classic emulator EML file to UPPER case (for easier comparison in some text-comparison tools) + +# http://www.linuxquestions.org/questions/programming-9/bash-script-parsing-optional-parameters-621728/ + +# show program usage +show_usage() +{ + echo + echo "Usage:" + echo "${0##/} input.eml output.eml" + exit +} + +# Minimum number of arguments needed by this program +MINARGS=2 + +# get the number of command-line arguments given +ARGC=$# + +# check to make sure enough arguments were given or exit +if [[ $ARGC -lt $MINARGS ]] ; then + echo "Too few arguments given (Minimum:$MINARGS)" + echo + show_usage +fi + +tr '[:lower:]' '[:upper:]' < $1 > $2