title: Using grep command to transfer data into a new file
body: <p>This might be super simple, but I have a <code>.txt</code> file with seismic data in which I'm trying to use the <code>grep</code> command to print out specific data only from Nevada (data in the file is marked either <code>CA</code> or <code>NV</code>) and to put it into its own <code>.txt</code> file.</p>
  
  <p>Sample data:</p>
  
  <pre><code>map 0.2 2016/09/26 18:36:51 39.330N 119.991W 4.7 9 km ( 6 mi) N of Incline Village, NV 
  
  map 1.5 2016/09/26 18:26:27 39.362N 122.781W 19.5 25 km (15 mi) NNE of Upper Lake, CA 
  
  map 1.5 2016/09/26 18:18:16 36.055N 117.857W 2.2 8 km ( 5 mi) E of Coso Junction, CA 
  
  map 0.2 2016/09/26 18:10:46 38.363N 118.324W 4.6 32 km (20 mi) SE of Hawthorne, NV
  </code></pre>
  
  <p>I'm typing: <code>grep NV filename &gt; newfilename</code></p>
  
  <p>But nothing is showing up. What's wrong? (My homework is to specifically use the <code>grep</code> command.)</p>