You can use sed. You can pass in the name of the file to the following script. You type a control character by typing [control]+v then [control]+char (assuming your system is like mine, anyway).
If you want to do a whole list of files, you can have them all in the same directory and do a "ls" and loop through the results and send them to this script or modify this script to do so instead of reading a filename from stdin.
---------------------------------------------
#!/usr/bin/ksh
filename=$1
tmpFile="/tmp/tmp.$$"
if [[ ! -e $1 ]]; then
exit 1;
# add pipes as needed
sed 's/^R//g' $filename | sed 's/^O//g' > $tmpFile
# put finished data back
cat $tmpFile > $filename
# delete temp file
rm -f $tmpFile
-----------------------------------------------
HTH
Nikki