#!/bin/sh if [ $# -ne 2 ] ; then echo "select -- count number of equal neighboring lines" >&2 echo "Usage: select FILE1 FILE2" >&2 exit 1 fi awk -v file1="$1" -v file2="$2" ' BEGIN { while (getline one[onec++]