db
db_pass
db_pass
sudo mysqldump -u$username -p$password $database > $database.sql
# $n - номер необходимой строки
head -$n file | tail -1;
db
username
db_pass
sudo mysqldump -u`head -2 file | tail -1` -p`head -3 file | tail -1` `head -1 file | tail -1`> $database.sql