1 2 3 4 5 6 7 8 9
#!/bin/sh PASS=$(grep --color=never "$1" ~/.passdb | awk -F' = ' '{print $2}') if [ -z "${PASS}" ]; then exit 1 fi echo "${PASS}"