I am very, very new to UNIX programming (running on MacOSX Mountain Lion via Terminal). I\'ve been learning the basics from a bioinformatics and molecular methods course (we
Also try to dos2unix the shell script, because sometimes it has Windows line endings and the shell does not recognize it.
dos2unix
$ dos2unix MigrateNshell.sh
This helps sometimes.