[r23]: LIME-core / bin / uniq Maximize Restore History

Download this file

uniq    29 lines (27 with data), 973 Bytes

#!/bin/sh
##################################################################
# generic shell wrapper for AWK scripts in LIME
#
#Copyright 2008 Pjotr Kourzanov
#
#This file is part of LIME.
#
#LIME is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License version 2
#as published by the Free Software Foundation.
#
#LIME is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with LIME.  If not, see <http://www.gnu.org/licenses/>.
##################################################################
stem=`basename $0`
base=`dirname $0`
[ -z "$LIME" ] && LIME=$base/..
[ -z "$iawk" ] && iawk=igawk
AWKLIB=$LIME/lib
export AWKPATH=$AWKLIB:$AWKPATH
$iawk -f $AWKLIB/$stem.awk $@