so the problem was in the unwanted CR or LF characters (whatever you called them) at the end of each line. I was using vi to edit the file, but saw these characters once opened my script in the vim. Fixed them by running :e ++ff=unix in vim and removing them by hand.
Thank you for helping me to troubleshoot this issue!!!
|