[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
diff directories: How do I identify changed files in a script-friendly w
From: |
Alan Mackenzie |
Subject: |
diff directories: How do I identify changed files in a script-friendly way? |
Date: |
Sat, 7 Feb 2009 13:33:21 +0000 |
User-agent: |
Mutt/1.5.9i |
Hi, bug-gnu-utils!
I'm using diff 2.8.1.
I want to get a list of files which have changed between two
directories, say ~/orig and ~/new, and I want them in a form I can use
in a script. For example, I would like to get this output
cc-defs.el README
The nearest facility I can find is diff -q ~/orig ~/new, which gives
"user friendly" output thusly:
Files ~/orig/cc-defs.el and ~/new/cc-defs.el differ
Files ~/orig/README and ~/new/README differ
. Have I missed a way of getting scriptable output, or do I need to
filter out the crud by hand? Or can a later version give script
friendly output?
Thanks in advance?
--
Alan Mackenzie (Nuremberg, Germany).
[cc:'s to me would be appreciated.]
- diff directories: How do I identify changed files in a script-friendly way?,
Alan Mackenzie <=