#!/bin/ksh # invert.ksh # reverses the args to a two-argument command CMD=$1 ARG_A=$2 ARG_B=$3 $CMD $ARG_B $ARG_A # end of invert.ksh