diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
| commit | 711594636704defae873be1a355a292505585afd (patch) | |
| tree | 59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man1/tmpnam.1 | |
| parent | 3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff) | |
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man1/tmpnam.1')
| -rw-r--r-- | static/v10/man1/tmpnam.1 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/static/v10/man1/tmpnam.1 b/static/v10/man1/tmpnam.1 new file mode 100644 index 00000000..f2757e42 --- /dev/null +++ b/static/v10/man1/tmpnam.1 @@ -0,0 +1,24 @@ +.TH TMPNAM 1 +.SH NAME +tmpnam \- make a file in the temporary directory +.SH SYNOPSIS +.B tmpnam +.SH DESCRIPTION +.I Tmpnam +creates a new file with a unique name in directory +.F /tmp +and places the full pathname on the standard output. +.SH EXAMPLES +.EX +tmp1=`tmpnam` tmp2=`tmpnam` +trap 'rm tmp1 tmp2; exit' 0 1 2 3 13 15 +sort file1 >tmp1; sort file2 >tmp2 +join tmp1 tmp2 +.EE +Notice that the classical trick for getting unique names, +.LR "sort file1 >/tmp/$$a; sort file2 >/tmp/$$b" , +does not work when +.F /tmp +is a blind directory. +.SH SEE ALSO +.IR mkunique (3) |
