Pario TechnoBlob
About
Posts
Posts
Bash user interfaces
Using select to make simple menus #!/bin/bash OPTIONS="Hello Quit" select opt in $OPTIONS; do if [ "$opt" = "Quit" ]; then echo done exit elif [...
Bash functions
As in almost any programming language, you can use functions to group pieces of code in a more logical way or practice the divine art of recursion. Declaring a function is...
Bash loops for, while and until
The for loop is a little bit different from other programming languages. Basically, it let’s you iterate over a series of ‘words’ within a string. The while executes a piece...
Bash redirection
Theory and quick reference There are 3 file descriptors, stdin, stdout and stderr (std=standard). Basically you can: redirect stdout to a file redirect stderr to a file...
««
«
1
2
3
…
88
89
90
…
126
»
»»