home *** CD-ROM | disk | FTP | other *** search
/ ftp.shrubbery.net / 2015-02-07.ftp.shrubbery.net.tar / ftp.shrubbery.net / pub / pc / unix / mv.doc < prev    next >
Text File  |  2002-03-31  |  1KB  |  34 lines

  1. mv    - move files
  2.  
  3. SYNOPSIS
  4.      mv file newfile
  5.    or:     mv file { file2 { file3 ...}} newdirectory
  6.  
  7. DESCRIPTION
  8.     If the last argument is a directory, mv moves the named files
  9.     to the given directory without renaming them.
  10.     If only two arguments are given, and the second is not a
  11.     directory, mv renames file to be newfile.
  12.  
  13.  
  14. EXAMPLES
  15.     - rename fred.txt to be joe.txt
  16.         mv fred.txt joe.txt
  17.     -to move all files ending in .txt to your parent directory:
  18.         mv *.txt ..
  19.  
  20. BUGS
  21.     Will not overwrite existing files.
  22.     Cannot handle drive letters.
  23.     Will not move between file systems.
  24.     Although it can move many files at once, it cannot rename
  25.     more than one file at a time; use DOS's RENAME command for that.
  26.     --- If the user accidentally types "mv ../*.* l" when he
  27.     wanted to type "mv ../*.* .", one file will be renamed
  28.     to "l", and no error will be issued.  The correct action
  29.     would be for the error "l is not a directory" to be
  30.     printed.
  31.  
  32. Written Aug 29 1984 by Dank.
  33. Last update Sept 5 by Dank- fixed -> . bug.
  34.