home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 066.lha / c / Mv.doc < prev    next >
Encoding:
Text File  |  1986-11-20  |  3.5 KB  |  78 lines

  1. Mv: Global Files Renamer
  2.  
  3. Usage: Mv [Old Name] [New Name]
  4.  
  5. [Old Name]:
  6.     Consists of a pathname and a filename, like df0:xxx/thisfile.    
  7.     If pathname is unspecified, it is default to the current dir you are
  8.     in. Filename must be specified for the oldname, it is either a regular
  9.     filename or a directory name, in which case the regular renaming will
  10.     take place, or a pattern which can consist of a '*' for any characters,
  11.     or a  '?' for a single character.
  12.     Example: abc?.*, *.*, this_file, ram:test.*, etc
  13.  
  14. [New Name]:
  15.     Also consists of a pathname and a filename.
  16.     If pathname is unspecified, the current directory will be selected.
  17.     If the filename is unspecified, the old filename will be used.
  18.     Once again the filename maybe a regular name or a pattern.
  19.  
  20. Examples:
  21.  
  22. Mv abc xxx        : Rename abc to xxx on the current dir
  23. Mv abc xxx/        : Rename abc to abc on the sub-dir xxx
  24. Mv xxx/abc        : Rename abc on xxx to abc on the current dir
  25. Mv abc /        : Rename abc to abc on one dir up
  26.  
  27. Mv * xxx/        : Rename all the files to xxx/
  28. Mv *.arc arc/        : Rename all files with ext arc to arc sub dir
  29. Mv *.o obj/*.obj    : Rename all .o to obj sub-dir, changes .o to .obj
  30.  
  31. Mv abc?.c "abc ?.c"    : Rename all files that start with "abc", has
  32.               a single char, and end with ".c" to new file
  33.               that has a space after "abc"
  34.     '"' is used for the pathname/filename that as imbedded space(s).
  35.  
  36. -------------------------------------------------------------------------
  37. Use Mv, discover how useful it is.  Give it to all your friends, post it
  38. on all the boards, put it on public domain compilations, THEN if you
  39. decide to keep it, send me $10 (if you don't keep it, I guess you like
  40. the rename command, telling you the truth I hate it):
  41.        Andry Rachmat
  42.        10715 Roosevelt NE #7
  43.        Seattle, WA  98125
  44. In return you will receive the upgrade version of Mv (see below).
  45. I will really appreciate it, and lift my ego to work on more usefull program
  46. like this. I am thinking about "copy" command with verify option, kill
  47. file after copying, and mainly the ability to copy files to different names
  48. (AmigaDos copy command can't handle this, it will copy bunch of files but
  49. the names will be the sames. You can't copy all ".pic" files to become
  50. ".picture" files). This will be also include in the upgrade package 
  51. (if it is done, for sure for further future upgrade).
  52. Support your poor programmer with no job, send in your $10.
  53. --------------------------------------------------------------------------
  54. What do you get for 10 bucks now?
  55.  
  56. 1. Mv will have the switches, like do testing only no renaming, do
  57.    renaming for directories instead of files, and verify if you want to
  58.    rename the file(s).
  59. 2. Now, the "*" wild card can't differenciate between "test" and "this.test".
  60.    It acts as "*.*" all the time so you can't pick up just the files with no
  61.    extensions.
  62. 3. AmigaDos wildcard "#?" will be supported.
  63. 4. Due to the bugs on the AmigaDos Ram handler, the program won't work
  64.    correctly for files on ram. I have figured a way around this bugs,
  65.    and it will be on the upgrade.
  66. ---------------------------------------------------------------------------
  67.  
  68. MV is copyright (c) 1987 by Andry Rachmat. All rights reserved.
  69.  
  70.     Permission granted for non-commercial distribution as long as
  71.     they are in this archive format with no modification.
  72.     I make no warranties, either expressed or implied, with respect
  73.     to the program described herein, its quality, performance,
  74.     merchantability, or fitness for any particular purpose.
  75.     This program is provided "as is" and the entire risk
  76.     as to its quality and performance is with the user.
  77.  
  78.