On 24 May 2005 10:56:43 -0700, com <com> wrote:
You could count the ones with similar names - do a
ls /path/to/dir | grep name | wc -l
to see how many directories with 'name' as part of their name exist
in /path/to/dir. Add one to that, (or make the first one without
a number) and mkdir with whatever name and the number that wc gave
Or, you could make them with a time/date stamp, down to the second if
that's fast enough to not have 2 during the same second...or serialize
during a second if it's more than 1 a second.
Nope. Direct measurement is always preferable to trial and error.
The real question might be "what are you trying to do that you feel
this is necessary".