I have a script that replaces the french accented caracters
by their html entities. I works great. I would like to improve it. I would like it to take the file name from the command line, back-up that file to whatever.bak and then modify the file and write it out to the original name.
How would I do that. How would I make my script back-up the file and then rewrite it with the modified text?