%%s 0/0/0 %%d D 1.1 25-Mar-82 12:10:11 v1.1 1 0 %%c Version 1.1 is the Spring 1982 Distribution of the LBL/Hughes release %%c of the Software Tools Virtual Operating System software and documentation. %%T %%I 1 #-h- mv.r 603 asc 25-mar-82 08:14:21 v1.1 (sw-tools v1.1) #-h- main 530 asc 25-mar-82 08:14:13 v1.1 (sw-tools v1.1) DRIVER(mv) character old(FILENAMESIZE), new(FILENAMESIZE) integer getarg, amove string usestr "usage: mv old new" string s1 "Error renaming '" string s2 "' to '" string s3 "'@n" call query(usestr) if (getarg(1, old, FILENAMESIZE) == EOF) call error(usestr) else if (getarg(2, new, FILENAMESIZE) == EOF) call error(usestr) else if (amove(old, new) == ERR) { call putlin(s1, ERROUT) call putlin(old, ERROUT) call putlin(s2, ERROUT) call putlin(new, ERROUT) call putlin(s3, ERROUT) } DRETURN end #-h- mv.fmt 475 asc 25-mar-82 08:14:21 v1.1 (sw-tools v1.1) .so ~bin/manhdr .hd Mv (1) 11-Jan-79 move (or rename) a file .sy mv old new .ds mv changes the name of `old' to `new'. If `new' already exists, it is removed before `old' is renamed. On networks or other systems where a simple rename is impossible, mv copies the file and then deletes the original. .fl none .sa The Unix command 'mv' .di A message is printed if `old' does not exist. .au Joe Sventek, Debbie Scherrer .bu Mv may only be used with ASCII files on many systems. %%E 1