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.

10
  • How would that work for recursive diff when I need to diff two directories?
    – lanoxx
    Commented Oct 2, 2015 at 10:16
  • @lanoxx diff -r dir1 dir2 for directories, to limit it you'll probably want to pipe that to something else. If you have specifics open a new question and give a link here.
    – nerdwaller
    Commented Oct 2, 2015 at 15:08
  • Well basically the same question just recursively: Diff only ( the first n lines | everything except the first n lines) for for all files in two directories.
    – lanoxx
    Commented Oct 4, 2015 at 16:07
  • @lanoxx like I said, make a new question and link it. It's best practice for the super user community instead of expanding the scope of some other user's question.
    – nerdwaller
    Commented Oct 4, 2015 at 16:09
  • 1
    @Veridian What shell are you using? This is bash specific, so you may need to call bash -c "diff <(...) <(...)"
    – nerdwaller
    Commented May 10, 2016 at 19:20