“Arquivo de temperatura Bash” Respostas de código

Arquivo de temperatura Bash

## You can use 'mktemp'

## Storing filename in a variable
## The X is replaced by random string
tmpfile=$(mktemp /tmp/abc-script.XXXXXX)
Tiago F2

Arquivo temporário do Linux Bash

temp_file=$(mktemp)
# do something with the file
rm ${temp_file}
Arno Deceuninck

Extensão de arquivo de temperatura Bash

   --suffix=SUFF
          append SUFF to TEMPLATE.  SUFF must not contain slash.  This option is implied if TEMPLATE does not end in X.

$ mktemp /tmp/banana.XXXXXXXXXXXXXXXXXXXXXXX.mp3
/tmp/banana.gZHvMJfDHc2CTilINNuq2P0.mp3
steamboatid

Respostas semelhantes a “Arquivo de temperatura Bash”

Perguntas semelhantes a “Arquivo de temperatura Bash”

Mais respostas relacionadas para “Arquivo de temperatura Bash” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código