title: Extracting last 10 lines of a file that match "foo"
body: <p>I want to write the last ten lines which contain a spesific word such as "foo" in a file to a new text file named for instance <code>boo.txt</code>.</p>
  
  <p>How can I achieve this in the command prompt of a unix terminal?</p>