dotfiles/.local/bin/scripts/difc
2021-12-02 23:33:22 +01:00

8 lines
206 B
Bash
Executable file

#!/bin/sh
# Diff the result of the given commands
prefix=/tmp/difc-
highlight "Executing $1"
eval "$1" | sort >${prefix}1
highlight "Executing $2"
eval "$2" | sort >${prefix}2
dif "${prefix}1" "${prefix}2"