#!/bin/sh # diff every file except the first against that first file # # $Id$ opts= while [ $# -gt 2 ] && case "$1" in -*) ;; *) [ ! -f "$1" ] ;; esac do opts="$opts $1" shift done [ $# -ge 2 ] || { echo "$0: supply two or more filenames" 1>&2; exit 1; } f1="$1" shift for f in "$@" do echo diff$opts "$f1" "$f" diff$opts "$f1" "$f" done