#!/bin/bash set -e PLUGIN_OUTPUT=$(mktemp -d -t plugin_XXXX) GETH_OUTPUT=$(mktemp -d -t geth_XXXX) ./dumpdiff.plugeth $PLUGIN_OUTPUT ./dumpdiff.geth $GETH_OUTPUT for file in $(ls $PLUGIN_OUTPUT) do diff "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file" echo Files match: "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file" done