unique string
Vu Pham
vu at sivell.com
Mon Dec 21 10:24:58 PST 2009
On 12/21/2009 11:17 AM, Kurt Wall wrote:
> From: "Vu Pham" <vu at sivell.com>
> To: "Linux tips and tricks" <linux-users at linux-sxs.org>
> Sent: Monday, December 21, 2009 8:15 AM
> Subject: unique string
>
>
>> To generate a temporary and unique directory name, I use uuidgen for
>> the unique string, something like tempdir=`uuidgen`;mkdir
>> /tmp/$tempdir;...;rmdir -r -f /tmp/$tempdir.
>
> s/uuidgen/mktemp/
Thanks a lot, Kurt. Glad that I asked.
Vu
More information about the Linux-users
mailing list