I need to use the following very often
diff <filename.c> standard
How can I have an alias (adiff) for it so that I would do
adiff filename.c
and it would expand to
diff filename.c standard
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use diff’s ‘–to-file’ option.
Try adding this line to your .cshrc:
Just tested this in Bash (different alias-syntax though) and seems to work.
Please insert the full path for the file “standard” to make sure you can call it from other directories too.
Now you should be able to use: