4 practical examples with bash increment variable
How to increment variable in bash shell script? How to add 1 to a variable for every for loop? How to increment counter in bash? How to perform bash variable plus 1? In this tutorial ... Read More
This covers topics and articles related to shell-scripting in Linux.
How to increment variable in bash shell script? How to add 1 to a variable for every for loop? How to increment counter in bash? How to perform bash variable plus 1? In this tutorial ... Read More
How to pass and store arguments to shell script? How to parse input arguments inside shell script? How to pass arguments to a function inside shell script in bash? How to read command line arguments ... Read More
How to concatenate strings with underscore, newline, whitespace or any other character in bash? How to append substrings in a string in bash or shell script? How to append starings in a variable using for ... Read More
In this tutorial we will learn about getopts in bash or shell programming language. getopts is short abbreviation for "get the options" which you have supplied in the form of flags to the script. It ... Read More
We have different configuration files which are used to setup system wide configuration. But we always have some requirement to setup user specific customization such as umask, alias, PATH variable etc. In such case we ... Read More
In this tutorial I will cover different attributes you can use in bash or shell scripting to check against files and directories. You can use bash conditional expressions with [[ ]] or use test with ... Read More
I am quite sure in almost all the scripts we always end up with one or more conditional checks which requires if and else statement. So bash is not different and even in shell scripting ... Read More
New to bash or shell scripting? Let's start learning. Bash scripting can be considered the first step to learn programming languages. You may be in any IT stream but there will come a point in ... Read More