Separate the convert commands to shell script.