Try dos2unix on your script.. looks like there are ^M chars.. you must've edited the script using some Windows' app instead of `vi` or some unix app..
Not that you can't use Windows app.. just be careful in setting up the preferences in the editor to ensure it saves in correct format..
thekashyap
Practically a Posting Shark
811 posts since Feb 2007
Reputation Points: 254
Solved Threads: 75
Skill Endorsements: 0