27 July, 2007

HowTo make temporary directory

I use this script for making temporary directories:


xqx_utemp.sh

#!/bin/bash

#Creates temporary folder with unique name (current date and time).

DATE=`date +%Y.%m.%d_%H.%M.%S.%N`
mkdir $DATE


Also, it is possible to create temporary directory via mktemp utility, but my script is more suitable for me.

No comments: