dotfiles/.local/bin/scripts/difc

9 lines
206 B
Text
Raw Normal View History

2021-12-02 23:33:22 +01:00
#!/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"