sed encountered an end of file while parsing the command cmd .
Check the script file for missing closing quotes, missing regular expression delimiters, and other syntactical errors.