Bash – Reading File

Background Now that we are able to run Bash on a Windows machine, it is even more reason to be aware of it.   Read a File Tradition Reading a file usually follows the following sequence:- Open File for reading Read line If EOF exit Process Read Line Read Next Return to EOF check   … Continue reading Bash – Reading File

Microsoft – Windows / Cygwin – Error – $’\r’: command not found

Background In Microsoft Windows, Launched Cygwin terminal mode and running a little bash shell script. But, getting the error "$'\r': command not found" The \r is a dead giveaway, as it means there is something amiss with Line Character and Carriage Return. Fix To fix: Launched Notepad++ Load the Bash Script File Access the menu … Continue reading Microsoft – Windows / Cygwin – Error – $’\r’: command not found