#-h- mv.r 592 asc 26-apr-81 08:00:47 [002,100] #-h- main 530 asc 26-apr-81 08:00:41 [002,100] 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.rof 690 asc 08-may-81 16:54:03 [002,100] .pl 60 .bp .rm 70 .in 0 .he 'MV'1/11/79'MV' .fo ''-#-' .fi NAME .br .in 7 mv - move (or rename) a file .sp 1 .in SYNOPSIS .br .in 7 mv file1 file2 .sp 1 .in DESCRIPTION .br .in 7 Mv changes the name of file1 to file2. If file2 already exists, it is removed before file1 is renamed. On networks or other systems where a simple rename is impossible, mv copies the file and then deletes the original. .sp 1 .in FILES .br .in 7 None .sp 1 .in SEE ALSO .br .in 7 The Unix command 'mv' .sp 1 .in DIAGNOSTICS .br .in 7 A message is printed if file1 does not exist. .sp 1 .in AUTHORS .br .in 7 .sp 1 Joe Sventek, Debbie Scherrer .sp 1 .in BUGS .br .in 7