1
0
mirror of git://git.suckless.org/sbase synced 2024-12-27 01:12:19 +00:00
sbase/mktemp.1

26 lines
698 B
Groff
Raw Normal View History

2013-11-12 11:52:28 +00:00
.TH MKTEMP 1 sbase\-VERSION
.SH NAME
mktemp \- make temporary filename
.SH SYNOPSIS
.B mktemp
2013-11-13 12:10:49 +00:00
.RB [ \-dq ]
2013-11-12 11:52:28 +00:00
.RB [ template ]
.SH DESCRIPTION
.B mktemp
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
2013-11-14 19:49:36 +00:00
`tmp.XXXXXXXXXX' is used and the tmpdir is set to `/tmp' unless the
TMPDIR envrionment variable has been set.
2013-11-12 11:52:28 +00:00
.SH OPTIONS
.TP
.B \-d
Make a directory instead of a file
2013-11-13 12:10:49 +00:00
.TP
.B \-q
Fail silently if an error occurs. This is useful if a script
does not want error output to go to standard error.
2013-11-12 11:52:28 +00:00
.SH SEE ALSO
.IR mkdtemp (3),
.IR mkstemp (3)