mirror of
https://github.com/Proxmark/proxmark3.git
synced 2024-11-21 04:50:14 -08:00
1f947c4b09
- Created several scripts to aid in EML/MFD file conversion - Created script which generates PM3-scripts for emulation based on MFD/EML input files
32 lines
739 B
Bash
32 lines
739 B
Bash
#!/bin/bash
|
|
|
|
# Andrei Costin <zveriu@gmail.com>, 2011
|
|
# eml2lower.sh
|
|
# Converts PM3 Mifare Classic emulator EML file to lower 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 '[:upper:]' '[:lower:]' < $1 > $2
|