New Glossary page
Added new page with some programming terms: Glossary
Don’t ever loose your phone
And find it if you lost it: https://www.google.com/android/devicemanager
More output control with echo
In complex shell scripts, it is useful to have more output control with echo. This is very handy in a function where output will be used as a return value,…
Detect absolute name of a file
To detect absolute name of a given file, run following command: readlink -f <file_name> For example: $ readlink -f ./test /home/leonid/test
Append string to each line in Bash
For example, you have a file or a variable containing several lines of text: lines=”line one line two line three” To append given string to the end of each line…
Bash: check syntax of files without execution
To check bash scripts without executing them, run: bash -n <script_file> For example: bash -n my_script.bash Of course, this syntax check is very limited, because bash syntax is somewhat flexible…
Bash: Temporarily ignore alias
If you have defined aliases in your .bashrc, some of them likely to have the same name as one of the programs on your system, ls is a common example.…