Tag Archives: LF

$’\r’: command not found

I usually crate my scripts on my windows everyday computer and upload them to my unix- bash running pc. Many times i get the error :$’\r’: command not found

This is caused by the “CRLF” End  of File for windows, which unix unfortunatelly does not like.

To correct this, open the script using Notepad++ and navigate to Edit>EOL Conversion>Unix(LF)

LF Notepad ++

And then retry the script.

This automatically converts all CRLF to LF. nice hah?