#!/bin/sh # # diffingly - apply a filter to a file and diff the result # # $Id$ # remove initial options so as to pass them to diff opts= for arg in "$@" do case "$1" in -*) opts="$opts $1"; shift;; *) break;; esac done # take the last argument as the file to diff against for lastarg in "$@" do : done exec "$@" | diff $opts "$lastarg" -