I have got to write this lines often:
# from project1 dir
scp app/models/user.rb root@mydomain.com:/var/www/project1/app/models
# from project2 dir
scp app/views/posts/index.html.erb root@mydomain.com:/var/www/project2/app/views/posts
scp -r app/mailers root@mydomain.com:/var/www/project2/app/
so I want to wrap it as a script
scpd project1 app/models/user.rb
scpd project2 app/views/posts/index.html.erb
scpd project2 -r app/mailers
so scpd will pass all options to scp and take first argument as a dirname on server's /var/www/ path.
So the question is: what is a common way for writing terminal scripts on macos? And some links to read about it. Bash? And maybe I can write it on Ruby? :)