Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash temporary file

## You can use 'mktemp'

## Storing filename in a variable
## The X is replaced by random string
tmpfile=$(mktemp /tmp/abc-script.XXXXXX)
 
PREVIOUS NEXT
Tagged: #bash #temporary #file
ADD COMMENT
Topic
Name
9+3 =