Inactive Tutor answered 04/13/22
the "^M" character is probably a result of the file contents getting mangled when going between ms windows and some variant of unix (like mac os or gnu/linux).
on gnu/linux there's a tool called "dos2unix" to get rid of them. you would use it like this:
on macos, there's tr, which i think you can use like this:
hope that helps!