How to configure file comparison?

LogicalDOC has many interesting features, but requires some configuration process to show its full potential.

Moderator: car031

adolforst
Posts: 2
Joined: Thu Jun 12, 2014 7:31 am

How to configure file comparison?

Thu Jun 12, 2014 8:10 am

Hi,

I want to compare 2 versions of a file. LogicalDoc is capable of comparing the metadata of different versions of a file but I want to be able to compare the actual document contents rather than the metadata. Is that possible?

Thanks for your help
car031
Posts: 154
Joined: Tue Apr 17, 2012 8:27 am

Re: How to configure file comparison?

Thu Jun 12, 2014 4:58 pm

Actually this is not possible, but thanks for letting us know about this.
adolforst
Posts: 2
Joined: Thu Jun 12, 2014 7:31 am

Re: How to configure file comparison?

Fri Jun 13, 2014 3:24 am

Hi,

Thanks for your quick reply. I have another question regarding file comparison. it seems that one can only compare the metadata of 2 files at a time, is it possible to extend the number of files compared at a time?

Thanks.
car031
Posts: 154
Joined: Tue Apr 17, 2012 8:27 am

Re: How to configure file comparison?

Fri Jun 13, 2014 6:24 am

Up to now there is no such option
imsajid
Posts: 2
Joined: Fri Jan 02, 2015 10:18 am

Re: How to configure file comparison?

Fri Jan 02, 2015 10:50 am

Extending Xerxes' solution, you can use more sophisticated tools than diff for displaying the differences.

wdiff

wdiff can be "too smart" at times, but I find it often useful for taking a quick glance at differences between configuration files. This script can be used for output with colors:

#!/bin/bash

RED=$'\e'"[1;31m"
GREEN=$'\e'"[1;32m"
RESET=$'\e'"[0m"
WDIFF_ARGS="-w$RED -x$RESET -y$GREEN -z$RESET --avoid-wraps"

wdiff $WDIFF_ARGS \
<(grep -vE '^([ \t]*#|^[ \t]*$)' $1) \
<(grep -vE '^([ \t]*#|^[ \t]*$)' $2) \
| less -R
On Ubuntu and other Debian-based systems, just apt-get install wdiff before using this script.

Meld

Meld is a nice GUI alternative, but its "Text filtering" feature has some issues. Instead of using text filtering, I remove comments altogether before showing the results in Meld. The drawback is losing the ability to edit the files while comparing them. Here's a simple script for using Meld:

#!/bin/bash

meld <(grep -vE '^([ \t]*#|^[ \t]*$)' $1) \
<(grep -vE '^([ \t]*#|^[ \t]*$)' $2)
ayaha
imsajid
Posts: 2
Joined: Fri Jan 02, 2015 10:18 am

Re: How to configure file comparison?

Fri Jan 02, 2015 10:53 am

adolforst wrote:Hi,

Thanks for your quick reply. I have another question regarding file comparison. it seems that one can only compare the metadata of 2 files at a time, is it possible to extend the number of files compared at a time?

Thanks.

you can compare only 2 files in same time
ayaha

Return to “Configuration”

Who is online

Users browsing this forum: No registered users and 9 guests