#!/usr/bin/sh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos720 src/bos/usr/bin/cdat/smit/cdat_print_sched_coll.sh 1.2 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2010,2011 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#)40 1.2 src/bos/usr/bin/cdat/smit/cdat_print_sched_coll.sh, cdat, bos720 7/15/11 05:38:04 # This command prints a scheduled collect from parameters # PATH=/bin:/sbin:/usr/bin:/usr/sbin [ $# -lt 2 ] && \ echo "Usage: $0 -i ... -t " && exit 1 COLLECT="" TYPE="" while [ $# -gt 1 ] do case $1 in -i) # if multiple -i then take the last one shift COLLECT="$1" ;; -t) # if multiple -t then keep all shift TYPE="$TYPE $1" ;; esac shift done if [ -n "$COLLECT" ] then printf "%-20s%s\n" "$COLLECT" "$TYPE" fi exit 0