Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

ryc

Re: mv command to replace files

martin wrote:

You cannot rename file to name of an existing file.


So, is there a way that I delete previuos file if exists, and mv the file. I have to move the file via script else it stays there in original directory.
martin

Re: mv command to replace files

You cannot rename file to name of an existing file.
move

mv command to replace files

I am giving 'mv' command to transfer files. But if file already exists, it gives error. I want to overwrite file, if already exists. How to do this with 'mv' command?