sbase/mktemp.1

29 lines
716 B
Groff

.Dd January 30, 2015
.Dt MKTEMP 1
.Os sbase
.Sh NAME
.Nm mktemp
.Nd make temporary filename
.Sh SYNOPSIS
.Nm
.Op Fl dq
.Op Ar template
.Sh DESCRIPTION
.Nm
takes the given filename template and overwrites a portion of it to create a
unique filename. The template may be any filename with at least six `Xs'
appended to it. If no template is specified a default of `tmp.XXXXXXXXXX' is
used and the tmpdir is set to `/tmp' unless the TMPDIR envrionment variable
has been set.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl d
Make a directory instead of a file
.It Fl q
Fail silently if an error occurs. This is useful if a script
does not want error output to go to standard error.
.El
.Sh SEE ALSO
.Xr mkdtemp 3 ,
.Xr mkstemp 3