fsl.scripts.tmpnam
The tmpnam script has the following usage scenarios
$FSLDIR/bin/tmpnamCreate a file in
$TMPDIR, called$TMPDIR/fsl_XXXXXX
$FSLDIR/bin/tmpnam prefixCreate a file in the current directory called
prefix_XXXXXX
$FSLDIR/bin/tmpnam /some/dir/Create a file in the
/some/dir/calledfsl_XXXXXX
$FSLDIR/bin/tmpnam /some/dir/prefixCreate a file in the
/some/dir/calledprefix_XXXXXX
$FSLDIR/bin/tmpnam /tmp/prefixA special case of #4. Create a file in
$TMPDIRcalled$TMPDIR/prefix_XXXXXX(i.e./tmp/is replaced with$TMPDIR)
In all cases, the name of the file that was created is printed to standard output.