To remove the trailing .OK on all files in this directory:
ls -d *.OK | sed 's/\(.*\).OK$/mv ”&” “\1”/' | sh'
ls -d *.OK | sed 's/\(.*\).OK$/mv ”&” “\1”/' | sh