replace '\n' with /\r?\n/ to make the task work fine on windows platform.