I am looking for command line tool to do diff between two HTML files. I have analysed kdiff3/command line of bbedit but my problem is dont want to open any GUI. I want to write a java program to call command line options of the diff program to compare html files and save result in a different file or probably show in a report file. Any pointers will be very helpful
Thanks Vishal
Code Compare is not available for Mac but there are plenty of alternatives that runs on macOS with similar functionality. The best Mac alternative is Meld, which is both free and Open Source.
You can use the command-line environment interactively by typing a command and waiting for a result, or you can use the shell to compose scripts that run without direct interaction.
If you have xcode installed, you can call up opendiff
, it's a (graphical) compare tool from the command line. From it's man page:
opendiff file1 file2 [-ancestor ancestorFile] [-merge mergeFile]
opendiff dir1 dir2 [-ancestor ancestorDirectory] [-merge mergeDirectory]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With