title: Outputs to newfile if line contains "-" or " "
body: <p>Is there a way to do the following python in unix command? Maybe with sed or grep??</p>
  
  <pre><code>for line in open(input_file)
      if "-" or " " in line:
          print&gt;&gt;line , output_file
  </code></pre>