Automate parsing and remaining of multiple files