#! /bin/sh # # Args: db-file-1 tag-in-file-2 db-file-2 tag-in-file-1 # (That is, each db file followed by its "owner".) # PATH=/home/mouse/acc/bin:"$PATH" case $# in 4) ;; *) echo Usage: $0 db-1 owner-1 db-2 owner-2 1>&2 exit 1 ;; esac # scanfile="$1" appfile="$3" scantag="$4" apptag="$2" # shared1 "$scanfile" "$apptag" "$appfile" "$scantag" shared1 "$appfile" "$scantag" "$scanfile" "$apptag"