In what way is it "not working"? What does it do? Did you remove the echo from in front of mv? I put that there to make sure it showed you what it was going to do instead of trashing your files if that wasn't what you wanted...
You're far from the only one who's been PM-poking me and I've gradually gotten a bit sick of it.
In order to help you I need you to answer my questions. In what way is it "not working"? What does it do? Did you remove the echo from in front of mv? I put that there to make sure it showed you what it was going to do instead of trashing your files if that wasn't what you wanted.
What Operating System you are running.
The current version of the script.
What you typed.
What you expected the system to reply.
How the system actually replied - verbatim.
@maga6610 When dealing with professionals it pays to be specific. Phrases like "the code give me error" and "but it is not working" are both poor English grammar and not much help towards resolution of your problem.
The answer I gave works fine for me. But it doesn't work for you, therefore more information is needed to understand why. We could have helped you in 5 minutes, instead of the days you took, if you'd bothered answering the question. Which one of us is arrogant again? And would you have considered it rude if I'd PM-ed you to get a faster answer from you?
P.S. If you're accusing me of being Methyl, that's hilarious.
It was hard to tell from the first post whether there were typing errors in the post (like the extra space character) or whether that was the problem. Needed to know about the environment and to see how the script was invoked and what happened.