Fileformat and the impacts in bash scripts
I had the problem calling a bash script I got theĀ error:
“syntax error: unexpected end of file”
and
“: command not foundne 2: ”
I had the problem calling a bash script I got theĀ error:
“syntax error: unexpected end of file”
and
“: command not foundne 2: ”
Since I always have to search how to enable the history search in (k)ubuntu I post it here. I don’t know why this feature is disabled by default in (k)ubuntu. Imo it’s one of the greatest features under the linux term. Just start the command you entered last time in the term and then press the key ‘PageUp’ to get the last history entry you used the letters.
For everybody who wants to enable the feature too:
Open the file ‘/etc/inputrc’ and enable the following two lines: (It’s in the section ‘# alternate mappings for “page up” and “page down” to search the history’)
“\e[5~”: history-search-backward
“\e[6~”: history-search-forward