AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/misc/randomFileName.lha

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:Generates random file names
Author: carls at kajen.com (Carl Svensson)
Uploader:carls kajen com (Carl Svensson)
Type:util/misc
Version:0.9
Architecture:m68k-amigaos
Date:2001-05-08
Requires:ARexx
Download:util/misc/randomFileName.lha - View contents
Readme:util/misc/randomFileName.readme
Downloads:652

              Random File Name Generator
              ==========================
              
                © 2001 Carl Svensson
                

What's this?
¯¯¯¯¯¯¯¯¯¯¯¯
A random file name generator. It generates a pseudo-unique file name
consisting of the letter a-z.

Contents of this distribution
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
randFileName.readme -- This file
randFileName.rx     -- The actual script

How do I use it?
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
It's an ARexx script. I'll give you an example on how to
call it from the command line:

1.Work:Data/rexx/> rx randFileName.rx 12 alamaba.gif .gif

This will rename the file alabama.gif to, for example,
"kjjjoqejgjho.gif".

The command line arguments are len, file and suffix
LEN -- Length of the new file name excluding suffix
    For example, if you replace "12" with "6" in the
    example above, you'll get a 6 + 4-letter name (i e "abcdef.gif")
FILE -- File to rename
    If the file name specified doesn't exist, randFileName will just
    print the new name instead of renaming the file.
SUFFIX -- The dot-extension
    This adds a dot-extension to the file name.
    Can be specified with or without the period sign.
    If the period sign isn't included, randFileName will add it.
    If no suffix is specified, the suffix .rnd will automatically
    be addedd to the file name.

Legal stuff
¯¯¯¯¯¯¯¯¯¯¯
This program is freely distributable as long as I'm credited
in the header comment of the source code. However, if included
in a commercial package or on a magazine coverdisk, I'd like
to be informed about this, and I'd appreciate a small donation
(for example a copy of the magazine/product where it's included).
I am NOT responsible for any of the problems this script may cause.
I offer NO warranty and I cannot guarantee that it'll work on your
computer.

It has been tested on my Amiga1200 running AmigaOS 3.0 on a 68040 CPU,
but I guess it should work on any Amiga with ARexx installed.

The Author
¯¯¯¯¯¯¯¯¯¯
Contact me (Carl Svensson) by email: carls@kajen.com
or visit my homepage, http://carls.1av10.nu/ for further
information.

That's it
¯¯¯¯¯¯¯¯¯
Hope you find it useless enough :-)


Contents of util/misc/randomFileName.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 1146    2332  49.1% -lh5- 8000 May  6  2001 randfile/randFileName.readme
[generic]                  834    1816  45.9% -lh5- eea4 May  6  2001 randfile/randFileName.rx
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    1980    4148  47.7%            May  7  2001
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>