generate multiple .sh for multi-core