Re: coreutils: mktemp(1) man page doesn't say what a template is

View: New views
1 Messages — Rating Filter:   Alert me  

Re: coreutils: mktemp(1) man page doesn't say what a template is

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The latest coreutils.git now states:

$ mktemp --help | head -n4
Usage: src/mktemp [OPTION]... [TEMPLATE]
Create a temporary file or directory, safely, and print its name.
TEMPLATE must contain at least 3 consecutive `X's in last component.
If TEMPLATE is not specified, use tmp.XXXXXXXXXX, and --tmpdir is implied.

and you can now do suffixes:

$ mktemp -u XXXXXXXXXXXXXXXXX.pdf
abAdqJ3pa1GbyWxTd.pdf

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkry4uEACgkQ84KuGfSFAYAyHQCgyU2PTn42MCLPxFlWN2uBaBLU
s2sAnRta+cSVBN5DlbsaWEk8P5HEOlM5
=R5Ax
-----END PGP SIGNATURE-----