Linux head and tail are basic commands for displaying file contents. In this post we’re going to show how to do that on many examples!
Continue reading Linux head tail – display lines of file by exampleBash
Linux cut command by example The Cut command is a great utility to select parts of lines. In this post we’ll show many example of how to use it.
Continue reading Linux cut command by exampleProblem: How to use Bash select function to write interactive scripts? In this post we’ll show how to use select to interact with user and guide her through filesystem. Read on.
Continue reading Bash selectProblem: How to process Bash script parameters? There are two ways – using while-case combo or with Bash getopts as we show in the following example.
Continue reading Bash script parametersProblem: How to use Bash case statement to process complex conditionals? It’s most often used to process script parameters.
Continue reading Bash case statementProblem: How to use Bash arrays? Bash is very flexible and allows to do funny things with arrays. Check out these cool Bash array examples.
Continue reading Bash arrayProblem: Bash if else is the most fundamental control flow statement used almost in every script. In the following Bash tutorial we show how to use if-else on examples!
Continue reading Bash if elseProblem: Bash until loop is another basic construct occurring in many programming languages. It is similar to the while loop, but… different. Learn how!
Continue reading Bash until loopProblem: while loop is a basic construct in many programming languages. Bash also allows us to use it to iterate over many things. Learn here how!
Continue reading Bash while loopProblem: How to create Here/inline Documents in Bash? Bash Here documents can be really helpful templating mechanism when used in Bash scripts. They can generate almost anything, even scripts to compile and run sample Java code!
Continue reading Bash Here Documents