OS4 DepotLogo by Nickman 
(anonymous IP:,0) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (600)
   o Document (22)
   o Driver (97)
   o Emulation (148)
   o Game (1005)
   o Graphics (499)
   o Library (116)
   o Network (233)
   o Office (66)
   o Utility (927)
   o Video (69)

Total files: 4379

Full index file
Recent index file



Support the site

 Readme for:  Utility » Misc » uniquename.lha


Description: Generates unique (random) strings
Download: uniquename.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 9kb
Version: 1.0
Date: 22 Jun 06
Author: Alex Carmona
Submitter: Alex Carmona
Email: AmigaOne/theworld net
Homepage: http://AM1GA.com
Category: utility/misc
License: Freeware
Distribute: yes
Min OS Version: 4.0
FileID: 1900
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 16  (Current version)
16  (Accumulated)

[Show comments] [Show snapshots] [Show videos] [Show content] [Show crashlogs] 
Based on Fredrik Wikstrom's mkpasswd utility

UniqueName is a command that generates a random and (hopefully) unique
alphanumeric string.
It's mostly useful in shell scripts, to avoid name clashes when creating pipes
and filenames.

UniqueName <length>

The command accepts a single (optional) argument, the length of the string to
be generated.

Length should be a value between 4 and 40.

It defaults to 8 if no value was specified.

Any other argument will return the usage template.

The minimum length of 4 characters represents over 1.6 million (36*36*36*36)
possibilities and should be safe enough for its intended use.
With 8 chars you get over 2.8 trillion possibilities, and if you're really
paranoid (nuts?), use 40, that represents over...
1600000000000000000000000000000000000000000000000000000000000 possibilities!


Suppose that each time you run a script you want to log its output to a new

 Execute Script >`UniqueName`.log

Perhaps within the script you want to redirect some output to other logfiles...

 Set log1 Sys`UniqueName 4`.log
 Set log2 Usr`UniqueName 4`.log
 SomeCommand >>$log1
 SomeCommand >>$log2
 SomeCommand >>$log1

You can run the script multiple times in parallel without risking overwriting
 another's log file.

Likewise with named PIPEs...

 Set pre PIPE:`UniqueName`
 Set post PIPE:`UniqueName`
 Run Capture input=$pre output=$post
 Wait 1
 Run Broadcast source=$post

Copyright (c) 2004-2024 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment