Amiga Survival Kit (Disk 80) (Feb 1988) : CLI Information / AmigaTricks.TXT

   The following tricks may be of interest to CLI/AmigaDos users.

1.  First, you can move a file to another directory without performing
    a copy then delete. Use the RENAME command and specify the pathname
    as part of the destination string.
  
    For example:

       rename lottahelp  newdir/lottahelp

    Moves the file 'lottahelp' to another directory called 'newdir'.

    You can even give the file a different name. BUT-BUT-BUT, you can
    only move files from one device to another location ON THE SAME
    DEVICE. You cannot move a file from RAM: to DF1:, etc.

2.  It is possible to set the system date/time by redirecting
    the stdin. But, you have to fool DATE by doing the following.

       DATE <newinfile [>nil:] ?

    The [] parameter is optional (do not included the '[' ']' 
    symbols). It will redirect the output of the DATE command to 
    the nil: device.

    The '?' is used to fool the date command into using 
    'newinfile' as the input for DATE.

3.  You can copy more than one file at a time to a destination
    directory by specifying a wildcard of the files to move,
    separated by the vertical bar character:

      copy file1|file2|file3|file4 ram:

   This makes a wildcard that only matches the filenames specified,
   so the copy proceeds as normal.