A search on the web found:

http://wiki.ibest.uidaho.edu/help/Tutorials/SGE_PBS_Converting.html

Creating a script that does replacement using the table from the above link would be simple, if not somewhat tedious.