for var in "$@" do if [ $var = "-t" ] then echo -n "-x " elif [ ! $var = "-T" ] && [ ! $var = "-e" ] then echo -n "$var " fi done