Skip to content

Instantly share code, notes, and snippets.

View mgttlinger's full-sized avatar

Merlin mgttlinger

  • FAU Erlangen-Nürnberg
  • Fichtelgebirge
View GitHub Profile
@mgttlinger
mgttlinger / docompare.sh
Last active April 15, 2020 07:55
Helper script utilising Pandoc and Emacs' ediff to compare changes in all sorts of text documents
#! /usr/bin/env bash
for f in "$@"
do
pandoc --to=markdown "$f" -o "$f.md"
done
if [ $# -eq 3 ];
then
emacs -q --eval "(require 'ediff)" --eval "(ediff-files3 \"$1.md\" \"$2.md\" \"$3.md\")"