title: Print output into a text file in linux
body: <p>Hello I am trying to get the difference between to text files. There are a lot of differences and viewing them in terminal is making it volatile since I cannot save them. I want to view and save the diff. How would I catch the output and print it to a text file??</p>
  
  <p>Code I am using for getting the diff is <code>diff -i -w -B file1.txt file2.txt</code></p>