#!/bin/bash echo "use maildb; insert into aliases values ('$1', '$2');" | mysql -u --password= echo "use maildb; select * from aliases where address = '$1';" | mysql -u --password=