I am relatively new to using the command line.
I want to create an alias such as "importme" that will do the following:
alias importme="ssh root@server.com << EOF
mysql
list databases;
EOF"
The problem is that using EOF requires pressing ENTER, which is not possible with alias'. My end goal is to create an alias that will import a database into a REMOTE database server from my local machine.
Any ideas on how to create this alias? with or without using EOF? Thanks