See code source for usage, basically just set the VARS for your environment/situation. Refer to http://imranchaudhry.com/?p=189
imran-uk/copy-corrupt-myisam-tables
Allows one to create a clean copy of a crashed MyISAM table and then switch it so a recovery operation can be done on the corrupt data.
Shell