cat new.filecat: cannot open new.file
mv old.file new.file
or simply mv -i old.file new.file
The -i switch will warn you if the command would overwrite an existing file.
The mv command will change the file's name whether the new filename exists or not. The cat command makes sure that a file will not be replaced or lost.