How to update all hyperlinks which are in the content
Export the database, run a find and replace over the dumped sql and re-import it.

e.g.:

#1 mysqldump ... &gt; output.sql
#2 copy output.sql to output_mangled.sql as a backup
#3 perl -pi -e 's/content\/2012/content\/2013/' output.sql  
#4 cat output.sql | mysql ...


Replacing ... with authentication and database specification parameters.

To be safer, make the regular expression in the replacement step more specific.