Short: Change case of file names (96.1) Author: i.einman@genie.com (Ian J. Einman) Uploader: i einman genie com (Ian J Einman) Type: util/cli Version: 96.1 Architecture: m68k-amigaos Recase is a shell command to change the case of a filename. It has two major purposes: 1. To rename a file with a different letter case; for example, if you wanted to change the name of a file "newname" to "NewName", rather than needing: >> Rename newname NewName you can simply type: >> Recase NewName You may specify multiple filenames on the command line as well. 2. To change filenames to all upper or lower case letters. For example, I download files from MS-DOS machines that are 8.3 filenames in all capital letters, and after I download them, I convert them all to small letters with: >> Recase MAIN:Downloads/#?.zip LOWER ---------------------------------------------------------------------------- Template: FILE/M,UPPER/S,LOWER/S FILE/M: Recase may operate on multiple names or patterns. Any standard AmigaDOS pattern will be accepted, but if you wish to recase a filename to a mixed case, you need to specify entire filenames. Patterns are only useful with the UPPER and LOWER keywords. UPPER/S: Convert the filename to all uppercase. You may specify any AmigaDOS patterns for this operation. If you have Workbench 2.1 or above, this will respect international characters. (*) LOWER/S: Convert the filename to all lowercase. You may specify any AmigaDOS patterns for this operation. If you have Workbench 2.1 or above, this will respect international characters. (*) (*) Of course, you are unlikely to encounter international characters in filenames that originated under MS-DOS! ---------------------------------------------------------------------------- Examples/Usage: Here are some examples of how to use Recase. >> dir thesefilenames _areeasiertoread Not really! So let's fix it... >> Recase TheseFileNames _AreEasierToRead >> dir TheseFileNames _AreEasierToRead >> dir MAIN:Downloads GM3208.JPG GM3209.JPG GM3211.GIF GM3212.GIF GM3219.GIF GM3224.GIF Not how I like it, so I'll fix it... >> Recase MAIN:Downloads/#? LOWER >> dir gm3208.jpg gm3209.jpg gm3211.gif gm3212.gif gm3219.gif gm3224.gif Let's pretend we use MS-DOS (don't try this please!): >> Recase C:#? LIBS:#? UPPER >> dir LIBS: AMIGAGUIDE.LIBRARY ASL.LIBRARY BGUI.LIBRARY BULLET.LIBRARY COMMODITIES.LIBRARY DATATYPES.LIBRARY ---------------------------------------------------------------------------- Details: The CTRL-C or CTRL-E signals can be used to stop the program at any time. AmigaDOS standard patterns are accepted, and a standard template can be displayed. The program is 100% compliant with recommended program guidelines and will run under any Os from 2.0 to 3.1 and beyond. It is not possible to recase the contents of a directory by simply specifying the directory name; this is not something I overlooked. This is because you may recase a directory name. If you want to recase the contents of an entire directory, use "DirName/#?". This will not be recursive. If you use Recase with a directory utility like Opus, you can configure it to be recursive. When recasing large directories to upper or lowercase (by specifying a pattern), you will notice that Recase caches the all the filenames for a pattern first, without displying anything, and then changes all the names. This is not faster, actually, it is slower. However, it is necessary, because if Recase attempts to rename the files in one pass (as it is going through the directories), the pattern matching may pick up the renamed filename as a new file, and can get stuck in a loop. By caching all the names before any modifications are made, Recase can avoid this problem. ---------------------------------------------------------------------------- Liability/Warranty: This program has a money-back guarantee. It should never cause any problems for you, since it can only rename files with a new case. It cannot move or delete files, give them a different name, or write to your hard drive. However, if it ever ticks you off, send me a note, and I'll send back all the money you paid me... ;-) ---------------------------------------------------------------------------- Author: I, Ian J. Einman, hereby claim this program and all of the rocks that may be hurled at me for writing it. Send bug reports and criticisms to: Mortimer Snerd 1 Micro Way Redmond, WA 98101 USA Send money, postcards, good suggestions, and pictures of your sister to: Ian J. Einman P.O. Box 5711 Bellingham, WA 98227 USA ---------------------------------------------------------------------------- Copyright: ©1996 Ian J. Einman I don't make a habit of releasing copyright-free software... this software is NOT Public Domain, it is Freeware. Therefore, you may distribute this program anywhere you like, as long as it includes this "readme" file. You may not legally modify or add to this archive any any way, EXCEPT for translations of the "readme" file to other languages. You may only remove the English "readme" file if the translation to the other language is COMPLETE. I would appreciate copies of any translations, but do not require them. If you include this file on a magazine coverdisk, I would like a copy please.