Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Script to compare 2 folders, including sub folders and files with content

by duelafn (Vicar)
on Jul 02, 2016 at 14:14 UTC ( #1167041=note: print w/replies, xml ) Need Help??


in reply to Re: Script to compare 2 folders, including sub folders and files with content
in thread Script to compare 2 folders, including sub folders and files with content

-qrs would be better since OP is only listing files, not the actual diff:

$ diff -qrs /tmp/A /tmp/B Only in /tmp/A: Math.aux Files /tmp/A/Math.log and /tmp/B/Math.log differ Files /tmp/A/Math.pdf and /tmp/B/Math.pdf differ Files /tmp/A/Math.tex and /tmp/B/Math.tex differ Files /tmp/A/MathLogo.jpg and /tmp/B/MathLogo.jpg are identical

Update: Oh oops, looks like haukex already said this... I missed it behind the part of their post that actually answered the original question :). Think of this post as highlighting the alternate solution.

Good Day,
    Dean

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1167041]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2021-02-27 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?