:
##########################################################################
# Shellscript:	tabulize - substitute whitspace with TABs
# Author     :	Heiner Steven <heiner.steven@odn.de>
# Date       :	1998-02-25
# SCCS-Id.   :	@(#) tabulize	1.3 04/02/18
##########################################################################
# Description
#  - Replaces all sequences of two or more space or TAB characters
#    with one TAB character (ASCII 9).
##########################################################################

PN=`basename "$0"`			# Program name
VER='1.3'

Usage () {
    echo >&2 "$PN - substitute whitespace with TABs, $VER (stv '98)
usage: $PN [file ...]"
    exit 1
}

set -- `getopt h "$@"`
while [ $# -gt 0 ]
do
    case "$1" in
					# your flags here
	--)	shift; break;;
	-h)	Usage;;
	-*)	Usage;;
	*)	break;;			# First file name
    esac
    shift
done

exec sed 's:[ 	][ 	][ 	]*:	:g' "$@"
