file_path = $(readlink -f "$0") file_dir = $(dirname $file_path) dest_file = ${file_dir}/xxx.sh sh ${dest_file}