Calculate the Sum of a Column Using the “Awk” Script in Bash
Comprehensive tutorial on the multiple ways of calculating the sum of a column from a file using the “awk” script in Bash through different examples
Read MoreComprehensive tutorial on the multiple ways of calculating the sum of a column from a file using the “awk” script in Bash through different examples
Read MorePractical tutorial on method of comparing two values using the “!=” and “-ne” operators to check the equality or inequality of two strings or numbers.
Read MoreTutorial on the methods of counting the length of an array in Bash using the “#” symbol or loop, or using the “wc” or “grep” commands along with examples.
Read MorePractical guide on how to use the recursive “grep” command to search the content in a directory of multiple files using different types of options and patterns.
Read MoreChecking the uses of the number of arguments in Bash script for various purposes such as error handling, providing messages based on the number of arguments.
Read MoreThe method of checking if a regular file exists in Bash or not in the current or particular location using the file test operators with the “test” command.
Read MoreTutorial on the various uses of the “bc” command in Bash scripts to generate the fractional value of any mathematical calculation with the precision value.
Read MoreTutorial on the “.bash_profile” file in Bash to set the environment variable or define any script to perform the automated tasks at the startup of the system.
Read MoreHow to use the Bash sleep command to stop the execution of the script for a certain period or do any scheduled task before executing a particular script.
Read MoreWe can use different techniques to check the existence of input arguments, such as using the “test” command, the “$#” variable, or the “-n” option.
Read MoreThe “pip: command not found” error can be easily corrected by checking if pip is installed, installing it if necessary, and setting the path to pip in the Bash.
Read MoreTo add a New Element to an Array Without Specifying the Index in Bash, use the += operator with the name of the array. Read this guide for more details.
Read MoreEchoing shell commands as they are executed can be done by using the set command, the -x option and the DEBUG trap. Read this guide for more details.
Read MoreThe -z option in Bash is a powerful tool for testing whether a string is empty. Read this guide for more details.
Read MoreIn Bash, there is no “goto” statement, instead, Bash provides alternative constructs that can achieve the same effect as a “goto”.
Read MoreBlock comments can span multiple lines of code. In shell scripting, we can create block comments by enclosing the comments within the <<‘EOF’ and ‘EOF’ markers.
Read MoreTo run a bash script in terminal there are four ways: through its path, through source, through sh command and through bash interpreter.
Read MoreTo use echo without newline character in bash there are three ways: using -n option, using -e option with escape sequence and using tr command.
Read MoreThe exit(1) means that the command was not executed successfully whereas exit (0) shows that command executed successfully.
Read MoreTo assign output of a Linux command to a variable in bash there are two ways one is through backticks and other is through command substitution.
Read More