Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: perl script to compare two directories -- oneliner

by Discipulus (Canon)
on Jul 12, 2019 at 10:16 UTC ( [id://11102721]=note: print w/replies, xml ) Need Help??


in reply to perl script to compare two directories

hello harangzsolt33,

Ok.. this is partially a joke, sorry ;) but sometimes other tools are just around the corner:

perl -e "system join ' ',qw(git diff --no-index Folder1 Folder2)" diff --git a/Folder1/NEW.txt b/Folder2/NEW.txt index 5d308e1..e69de29 100644 --- a/Folder1/NEW.txt +++ b/Folder2/NEW.txt @@ -1 +0,0 @@ -NEWTEXTINSERTED

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-28 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found