Adobe Experience Manager Blog

A home of AEM techies...

Monday, July 8, 2013

Syntax while executing Shell Script in windows

Error Type:

./script.sh: line 1: syntax error near unexpected token '$'do\r''

Or ...

./script.sh: line 1: $'\r': command not found

Solution:  http://www.jwgoerlich.us/blogengine/post/2007/06/08/Tip-Bash-scripting-in-Cygwin-without-5cr-syntax-errors.aspx

Posted by Siva at 4:58 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2013 (72)
    • ►  May (43)
    • ►  June (16)
    • ▼  July (6)
      • How to take Thread Dumps from a JVM
      • Syntax while executing Shell Script in windows
      • How can we hide the CMS Console Buttons
      • How to create AEM Groups package including ACLs?
      • What is the notation of translation site to be cre...
      • How to get Resource?
    • ►  September (4)
    • ►  October (2)
    • ►  December (1)
  • ►  2014 (2)
    • ►  July (2)
  • ►  2015 (3)
    • ►  April (2)
    • ►  June (1)
  • ►  2017 (1)
    • ►  October (1)

Contributors

  • Murali
  • Siva
Simple theme. Theme images by mammamaart. Powered by Blogger.