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
  • Your edit just barely beat me from posting the exact same answer. +1 Commented Feb 5, 2014 at 18:40
  • So the $(command) syntax works as a kind of replacement? Commented Feb 5, 2014 at 19:27
  • 2
    @CodeBlue - yes. It's called Command Substitution Commented Feb 5, 2014 at 19:29
  • 8
    sort sentences.txt | uniq -d | grep -nFxf - sentences.txt would be a little more efficient and would avoid potential arg list too long problems. Commented Feb 6, 2014 at 9:34