Unix script : Append to a file
I am trying to write a Unix script which does the following:
alias myserver='/usr/bin/myserver :$SOME_USERID -name $SOME_USERNAME'
to the end of a particular file.
Can anyone help me with doing this ?
I tried the following in my script file
echo "alias myserver='/usr/bin/myserver :$SOME_USERID -name $SOME_USERNAME'" >> .bashrc
But i am getting the following
invalid command name "echo"
1. Why is this happening ?
2. Any other way to do the appending ?
Thanks in advance