How would I go about using command line arguments in order to compare two different text files that will output the following?:
differ -a file1.txt file2.txt
displays all differences
differ -n file1.txt file2.txt
displays the first n differences
And, for example
displays the first 20 differences and prompts the user for the file names
A template with explanation would be the most useful. I have some code I am trying to edit in order to do this, but I really want to understand how this works.