Answers for "mktemp with date"

0

bash create temporary folder

#!/bin/bashtmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)echo $tmp_dir # ... rm -rf $tmp_dir 
Posted by: Guest on August-15-2020
0

mktemp with date

#!/bin/bashtmp_dir=$(mktemp -d -t ci-$(date +%Y-%m-%d-%H-%M-%S)-XXXXXXXXXX) echo $tmp_dir rm -rf $tmp_dir
Posted by: Guest on February-01-2021

Browse Popular Code Answers by Language