TDBtool.sh