14 lines
176 B
Bash
14 lines
176 B
Bash
|
#!/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
|