Web Development and Unix Fundamentals

Casual Mode - Take your time!

1 / 20
Correct
0
Incorrect
0
Score
0%
Multiple Choice

What is the command to find the differences in the lines containing "1999" between the files orig.txt and copy.txt, and add the result to file result.1999?

  1. diff orig.txt -d copy.txt | grep 1999 > result.1999
  2. diff orig.txt copy.txt | grep 1999 >> result.1999
  3. grep 1999 *.txt >> result.1999
  4. diff orig.txt copy.txt | grep 1999 << result.1999
Change Mode