I run into a problem with this line of code: tmp_dir=`mktemp -d` Apparently this is not the proper usage of the command, as it is missing a "template parameter" SYNOPSIS mktemp [-d] [-q] [-t prefix] [-u] template ... mktemp [-d] [-q] [-u] -t prefix