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

util/cli/Arename.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:V1.0 Create rename/un scripts num-orderd +src
Author:mark at kontumnam.freeserve.co.uk (Mark Weller)
Uploader:mark kontumnam freeserve co uk (Mark Weller)
Type:util/cli
Architecture:m68k-amigaos
Url:www.kontumnam.freeserve.co.uk
Date:2000-06-15
Download:http://aminet.net/util/cli/Arename.lha - View contents
Readme:http://aminet.net/util/cli/Arename.readme
Downloads:5774

Arename
--------
This program produces a script file to rename chosen files in a chosen
 directory  in a numberd format with a few other options.

 * The scripts use the amigados rename command
 * you can rename all files in directory or by files by chosen extension.

I mainly wanted a small util to rename picture files in the format
 pic0000.jpg,pic0001.jpg,.....pic0033.jpg and be able to rename them back
 to the original name using amigados scripts. but I now use the program for
 various other tasks, keeping image names for web pages simple and also
 I have a pc running linux os and use ms-dos floppys to copy data files
 between the two. ms-dos as the long filename problem,
 It may be easier to archive the files - (lha keeps the long filenames), but
 is not always a good option for other reasons.


   I have included the source code with this program - I used Dice to
     compile it, but should compile using any compiler - use it as you wish.

   If you find this program or source code useful please e-mail me
    if not - sorry for wasting your time!

Usage
-----
  Arename <-ve> [directory] [name] [ext] <user ext>

 switches: -
            v  = verbose - displays output to the screen

            e  = this option allows you to select files by thier
                 extension - the default is all files in the directory
                  (including .info files)


    directory  = containing files to rename (ie: work:images)

         name  = new file name (ie: pics) this will be text before the
                 numbers (ie: pics0000.img). use "" if you want just
                  numbers (ie: 0000.img 0001.img 0002.img ....)

          ext  = extension for new filename (ie: img) would produce
                 img on the end of the renamed files (ie: frame0000.img)

                 -*- Two important notes -*-

                  1) the script files created by this program (which will
                     be created in the directory containing the files to
                     be renamed) have the extension 'scp'. These files
                     are ignored by the program.

                  2) This extension is used to make part of the script
                     name, there are to scripts one to rename and one to
                     undo. example if you choose img as the extension :-

                       rename script : Arenimg.scp
                       undo script   : Aundimg.scp


     user ext  = Will only rename files with this extension (use with -e)
                  (ie: jpg  - only jpeg files in the directory)

                example -:
                 if you have a directory with different image types
                 .iff .gif .ilbm .jpg and they all had .info files
                 but you do not want to include the .info files in your
                 renaming.

                 :> Arename -ve work:mydirectory temp scp info
                 :> execute Arenscp.scp

                 this will change all .info files to have .scp
                  as the extension.
                   butterfly.jpg.info ->   temp0000.scp
                   cowboy.gif.info    ->   temp0001.scp

                 :> Arename -v work:mydirectory frame img
                 :> execute Arenimg.scp

                 this will rename all the files in the directory
                  ignoring the .scp files (which where mainly .info
                  files) to.
                    butterfly.jpg    ->    frame0000.img
                    cowboy.gif       ->    frame0001.img
                  -*- now do what you want with the image files -*-

                 :> execute Aundscp.scp
                 :> execute Aundimg.scp

                  this will restore all files back to their original names
                  if you want to.

Examples
--------
 example: Arename -v Work:pics holiday jpg
  this will rename all files in the chosen  directory to:

  holiday0000.jpg,holiday0001.jpg,...holiday0023.jpg

 example: Arename -v Work:pics "" img
  this will rename all files in the chosen  directory to:

  0000.img,0001.img,0002.img,0003.img,...0023.img

 example: Arename -v Work:pics caves img jpg
  this will rename all files in the chosendirectory with the
   extension jpg to:

  caves0000.img,...caves0023.img

    -*- Mark Weller -*-


Contents of util/cli/Arename.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 7035   12128  58.0% -lh5- 36bb Jun 14  2000 Arename/Arename
[generic]                 2382    9517  25.0% -lh5- e969 Jun 14  2000 Arename/Arename.c
[generic]                 1629    4530  36.0% -lh5- bf35 Jun 14  2000 Arename/Arename.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files   11046   26175  42.2%            Jun 15  2000

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>