Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    You might want to use mktemp for generating the temporary file name, instead of tmp-$(uuidgen) or similar hacks. Commented Jun 20, 2011 at 13:06
  • OP presupposed that sed was necessary, but didn't specify why another solution would be unacceptable. +1. Commented Jun 20, 2011 at 13:40
  • I used the line in your script like so: grep -F -f "uniq_failing_specs.txt" -v -- "all_specs.txt" >>"passing_specs.txt" Commented Oct 16, 2012 at 11:36
  • @ThomasDickey's point in his answer is correct; by not using -x you open this up to unexpected behavior due to flawed logic. Commented Mar 16, 2016 at 11:43