I reached half of the solution, the cause of this error,
The ^M is a carriage return character. Linux uses the line feed character to mark the end of a line, whereas Windows uses the two-character sequence CR LF. file has Windows line endings, which is confusing Linux.
To convert the line endings from DOS/Windows style to Unix style, there’s a tool called dos2unix . install it using:
sudo apt-get install dos2unix
Then simply convert files’ line endings in both ways using
dos2unix FILENAME
unix2dos FILENAME
Then I got this result
I don’t see the results in out folder,
(this error makes favour to me, I read a lot of things about linux and shell script
) but still I don’t know , where the results are and if something still wrong?)



