[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Error in Shell Script!!



    "Alex" == Alex Togstad <alextogstad@attbi.com> writes:

    Alex> A snippet of the code which should be enough can be found
    Alex> here:

    Alex> http://kernelphr34k.home.attbi.com/error

    Alex> This is only part of the script, and yes everything is
    Alex> defined. This is in BASH!

When I downloaded the code on your web page I found lots of trailing
'^M' characters at the line endings. Removing them after the 'then'
statements seems to fix your problem. Perhaps you are having an editor
problem? PC to Unix and all that?

Cheers!
Shyamal



Reply to: