unique string

The Small Box Admin smallboxadmin at gmail.com
Mon Dec 21 10:12:54 PST 2009


> s/uuidgen/mktemp/

I learned something new.  Thanks!

On Mon, Dec 21, 2009 at 9:17 AM, Kurt Wall <kwall at kurtwerks.com> 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/
>
>
> _______________________________________________
> Linux-users mailing list ( Linux-users at linux-sxs.org )
> Unsub/Password/Etc: http://linux-sxs.org/mailman/listinfo/linux-users
>
> Need to chat further on this subject? Check out #linux-users on
> irc.linux-sxs.org !
>



-- 
The Small Box Admin
http://smallboxadmin.blogspot.com



More information about the Linux-users mailing list