Sysadmin and cooking recipes

November 26, 2014
by davide
1 Comment

Shell: Fixing shell script with ^M as carriage return character(s)

What appen ? Running a shell (bash, sh, tcsh, or whatever) script fail with the error below

The source of the problem is that this file have been edited on Windows system (see below) The ^M characters are carriage … Continue reading