Just a few come to mind; grep
, maybe egrep
. Oh, and sort
grep -v "^#" /path/to/config1 | tee -a ~/config1
grep -v "^#" /path/to/config2 | tee -a ~/config2
diff ~/config1 ~/config2
You could also setup a "Version Control" repository like SVN or CVS to store the configuration files into, and then you could do compares between "versions".