2017-05-26 10:28:13 +01:00
|
|
|
# mktemp
|
|
|
|
|
|
|
|
> Create a temporary file or directory.
|
2019-06-04 10:25:12 +01:00
|
|
|
> More information: <https://www.gnu.org/software/autogen/mktemp.html>.
|
2017-05-26 10:28:13 +01:00
|
|
|
|
|
|
|
- Create an empty temporary file and return the absolute path to it:
|
|
|
|
|
|
|
|
`mktemp`
|
|
|
|
|
|
|
|
- Create a temporary directory and return the absolute path to it:
|
|
|
|
|
2017-12-26 08:48:56 +00:00
|
|
|
`mktemp -d`
|
2017-05-26 10:28:13 +01:00
|
|
|
|
|
|
|
- Create a temporary file with a specified suffix:
|
|
|
|
|
|
|
|
`mktemp --suffix "{{.txt}}"`
|