orabona/create_users/add_mail.sh

14 lines
176 B
Bash
Raw Permalink Normal View History

2014-01-07 16:29:04 +00:00
#!/bin/bash
maildir="mail/"
mail=$maildir$1"_mail.txt"
mail_b=$mail"_back"
echo $mail
#backup_old mail
#cp $mail $mail_b
sed_name='s/${id}/'$1'/'
sed -i -e $sed_name $mail