I know questions regarding this error have been asked before - but I can't seem to figure out why this isn't working in this case: for aliases.
I have the following
alias scpip='scp $1 [email protected]:~'
I want the use case to be scpip file so that it copies the file into user's home directory in ip.edu. Instead I get the error
scp: /home/user: not a regular file
It works if I do it 'manually' ie scp file [email protected]:~ . How can I make this work as an alias with an argument?