bash - Unexpected $'\r': command not found after mysql query in shell -


This discretion gives the appropriate results, but also makes a mistake: $ '\ r': Not in line with the command query Found

 #! / Bin / bash key arpas = $ 1 intercom = $ 2 flat = $ 3 number = $ 4 mysql -login-pips dbn-n "select cli.codeGuestEmail, cli.codePrivateEmail, cliKey.rf_id, cliKey.emailNotification by MBis_clines Clive MBisClick Keys in the form clicked as clicked by Klikey.Id_client = Cli.ID WHERE cli.flat = $ {flat} and cli.domophone = $ {intercom}; 

Run script:

  sh sendEmailNotification.sh key 10001014 11 1  

"code">

  tr-d "\ r" & lt; SendEmailNotification.sh & gt; Se NdEmailNotification_fixed.sh  

Comments