1 2 3 4 5 6 7 8 9
#! /bin/bash ./trex-cfg cd $(dirname $0) export LD_LIBRARY_PATH=$PWD saveterm="$(stty -g)" ./_$(basename $0) $@ stty $saveterm