#!/bin/ksh#usage=log-tool.sh rm -s server1 -t datanodecommand="$1";shiftserver=type=while getopts t:s: OPTSdo case ${OPTS} in s) export server=${OPTARG};; t) export type=${OPTARG};; esacdoneecho $command;echo $server;echo $type;usage="clean|cat|less|tail|rm"cd $HADOOP_HOME/logslog_file="hadoop-hduser.$server.$type.log"echo $log_file;