Active Oldest Votes. I believe you're running on Cygwin. There's more to the error messages than what you're seeing: : command not found: : command not found: : command not found1: : command not found6: replaceXML. Keith Thompson Keith Thompson k 41 41 gold badges silver badges bronze badges. I didn't even think of cygwin.
Good answer. If you happen to be running ubuntu Instead you would install tofrodos using sudo apt-get install tofrodos and then run fromdos on your file. Try this:! Mona Jalal Mona Jalal Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Collectives on Stack Overflow. Learn more. Asked 9 years, 9 months ago. Active 2 years, 8 months ago. Viewed k times.
Bryan Rajeev Rajeev The error is most likely before that. Indent the code according to nesting level. And at least 4 spaces per indentation level at that, so you can really see the structure. What is the assignment to value in the last line used for - the value is never used. Show 2 more comments. Active Oldest Votes. Clean up your code, and errors start to stand out. This was really helpful. These are the common things which just slip.
Keep adding : — Shobhit Puri. Thanks a lot :- — Sudarshana Dayananda. Add a comment. End Of Line. David Gidony David Gidony 2 2 gold badges 14 14 silver badges 27 27 bronze badges. This answer helped me. This one helped, exact same approach as cjmling said — Minh Kha. Collectives on Stack Overflow. Learn more. Unexpected end of file in shell script Ask Question. Asked 8 years, 11 months ago.
Active 5 years ago. Viewed 4k times. I have script:! Kirill Bazarov. Kirill Bazarov Kirill Bazarov 4, 6 6 gold badges 32 32 silver badges 52 52 bronze badges.
From my experience with bash, this error occurs if you have some minor syntax problem. I m trying to find it, but I cant — Kirill Bazarov. Are you working in Cygwin, by chance? From Windows. But connected throw ssh to host with ubuntu — Kirill Bazarov.
0コメント