bash create temp file and temp folder code example
Example 1: bash create temporary folder
#!/bin/bashtmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)echo $tmp_dir # ... rm -rf $tmp_dir
Example 2: linux bash temporary file
temp_file=$(mktemp)
# do something with the file
rm ${temp_file}