home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Move(V1.3) ARP User's Manual Move(V1.3)
-
-
-
- NAME
- Move - Move (Rename) a file.
-
- SYNOPSIS
- Move From/a To=As/a CASE/s QUIET/s
-
- DESCRIPTION
- This command is the same as Rename, but can also Move
- (rename) files from device to device. This is a far more
- capable command, and you should consider replacing Rename
- entirely with this command, and use an Alias (see the Ash
- Manual for more information on Alias's) for older scripts
- which still need Rename. Using Move to move files from
- device to device is cleaner (and usually faster) than using
- a Copy and then a Delete.
-
- FILE SPECIFICATION
- As usual with ARP commands, you have a lot of flexibility in
- specifying the files you wish to move, and the names you
- wish to move them to. For the From argument, you can specify
- a single file, or a range of files using patterns. The To
- argument can be a single file (if From was a single file) or
- it can be a directory or a pathname. If you want to move
- files to the current directory, you can use a single dot
- ('.') to indicate the current directory.
-
- You can specify wildcard characters in the To argument,
- which will cause Move to build a new filename based on the
- old. The syntax expected is:
-
- <optional_prefix>*<optional_postfix>
-
- You may specify neither, one, or both of these optional
- tags. If you exceed the length of an AmigaDOS filename (30
- characters as of this writing) the name will be silently
- truncated. You can also indicate which portion of the From
- filename you want to be replaced by using the wildcard
- characters in the source pattern. The rule followed is that
- any constant (i.e., non-wildcarded portion) of the
- source pattern is discarded. As an example, the
- command:
-
- Move l* start*end
-
- will move all files beginning with an 'l'. The destination
- names these will be copied to will be formed by removing the
- 'l', and sticking 'start' on the front, and 'end' on the
- back. So, for example, the file 'LXXX' would be copied to
- the file 'startXXXend'. If the start or end patterns are
- omitted, these are regarded as null strings.
-
-
-
-
-
- Page 1 (printed 4/28/89)
-
-
-
-
-
-
- Move(V1.3) ARP User's Manual Move(V1.3)
-
-
-
- OPTIONS
- CASE If you specify the CASE keyword, Move will CAPITALIZE
- the first character in each destination file. A handy
- way to make all of the commands in a directory start
- with a Capital is to use the command:
- 1> Move SomeDir/* SomeDir CASE.
-
- QUIET
- If you use wildcards, Move will report its activities
- as it moves the files. This switch overrides this
- behavior, causing Move to do its work silently. Note
- that error messages will still be displayed even if
- QUIET has been selected.
-
- EXAMPLE
- Move df0:c/why RAD:c CASE
-
- This moves the file why to the directory RAD:c, capitalizing
- the destination filename to "Why".
-
- Move df1:src/*.c ARCHIVES:src
-
- This Moves all the files ending in '.c' to the directory src
- on the volume ARCHIVES.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 4/28/89)
-
-
-
-