So I have a script that renames a bunch of files:
mv file1old.jpg file1new.jpg
mv file2old.jpg file2new.jpg
mv file3old.jpg file3new.jpg
The problem is: let's just say file2old.jpg doesn't exist, well it makes an error in my script and file3old.jpg never gets processed. How can I avoid the script breaking down like this?