|
|
1.1 ! root 1: .th MV I 8/20/73 ! 2: .sh NAME ! 3: mv \*- move or rename a file ! 4: .sh SYNOPSIS ! 5: .bd mv ! 6: name1 name2 ! 7: .sh DESCRIPTION ! 8: .it Mv ! 9: changes the name of ! 10: .it name1 ! 11: to ! 12: .it name2. ! 13: If ! 14: .it name2 ! 15: is a directory, ! 16: .it name1 ! 17: is moved to ! 18: that directory with its original file-name. ! 19: Directories may only be moved within the same parent ! 20: directory (just renamed). ! 21: .s3 ! 22: If ! 23: .it name2 ! 24: already exists, ! 25: it is removed before ! 26: .it name1 ! 27: is renamed. ! 28: If ! 29: .it name2 ! 30: has a mode which forbids writing, ! 31: .it mv ! 32: prints the mode and ! 33: reads the standard input to obtain a line; ! 34: if the line begins with ! 35: .bd y, ! 36: the move takes place; ! 37: if not, ! 38: .it mv ! 39: exits. ! 40: .s3 ! 41: If ! 42: .it name2 ! 43: would lie on a different file system, ! 44: so that a simple rename is impossible, ! 45: .it mv ! 46: copies the file ! 47: and deletes the original. ! 48: .sh BUGS ! 49: It should take a ! 50: .bd "\*-f" ! 51: flag, like ! 52: .it rm, ! 53: to suppress the question ! 54: if the target exists and is not writable.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.