Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to compare two folders and their content for changes. So natural choice is diff tool under mac.

I run this command:

diff -rq folder1 folder2

This outputs huge list of changes, and 99% of them are .DS_Store files. Obviously I don't want to consider these files. I want to pipe output into grep and using -v flag remove DS_store lines.

I run:

diff -rq folder1 folder2 | grep -vi ".DS_store"

But I get same output as before.

What am I doing wrong?

share|improve this question
Cannot reproduce here — can you show us the diff output? –  slhck Aug 5 '12 at 16:09
@slhck I'm on ubuntu on vocation, so I cannot check. I will update my post with relevant info as soon as I get back... –  Sandro Dzneladze Aug 6 '12 at 16:31
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.