variabel subjek mail bash

subj="hello from $(hostname -s) $(date)" 
echo "data" | mail -s $subj mail@mail
Perro Fiel