Menu
TAG

Learn Bash

Basic Calculator Program - BASH Example Project [Part 8]
Learn Bash 4 min read

Basic Calculator Program - BASH Example Project [Part 8]

We will build a bash example project, calculator program and at the same time reinforce all the concepts already taught. In a quick summary, we’ve explored the fundamental topics on variables, decisions, control statements, and arguments. There were minor subtopics including using comments in bash programs and operator types. Make sure to refer to previous articles in case you need to relearn any topic. * Algorithm or procedure * Coding * Some clarification * infi

Learn BashUncategorizedtutorial
Arguments | Another way to work with user inputs - Part 7
Learn Bash 4 min read

Arguments | Another way to work with user inputs - Part 7

Welcome to the Arguments chapter of the BASH scripting series. This chapter will introduce you to another new method of getting user inputs for your script. In the previous chapter, we’ve used the read command to get user inputs. Our bash interpreter invokes the read command works after our bash program, i.e., user input is prompted after the program is run. Still, we are interested in getting input parameters or arguments, so our program will process them later. What are arguments

Learn BashUncategorizedtutorial
Bash for loop - Loops In BASH- Learn BASH | Part 6
Learn Bash 4 min read

Bash for loop - Loops In BASH- Learn BASH | Part 6

Welcome to the sixth chapter on BASH scripting series. And today we will dive into a very cool topic called looping constructs in computer programming. Loops are important if we have a task that needs repetition. There are different types of loops in bash, bash for loop, while loop, and until loop. In the previous chapter where we discussed decisions, we made the computer think logically. Combine that with loops and we have an almost humanoid program that can think, work, and repeat the

Learn BashUncategorizedtutorial
BASH Operators [Part 5]
Learn Bash 4 min read

BASH Operators [Part 5]

In the previous decisions article, we came across many new bash operators while learning the if, if-else, and elif statements. This article will provide deep insight to bash operators and their various types in computer programming. * Types of BASH operators * Assignment * Relational * -eq and -ne * -gt and -lt * Logical * && * || * Conclusion Types of BASH operators There are many types of BASH operators but for the sake of this seri

Learn BashUncategorizedtutorial
Decisions | A Way To Make BASH Program Intelligent - Learn BASH | Part 4
Learn Bash 4 min read

Decisions | A Way To Make BASH Program Intelligent - Learn BASH | Part 4

Welcome to the fourth chapter of BASH scripting series in which we will discuss the topic, decisions. Like a human being making decisions throughout the day, computers too need to decide on the best possible route when executing stuff from time to time. It has to consider whether a certain line of statements is necessary to be executed or not, based on a condition. In computer programming, the condition is usually tested on boolean values; either true or false. What is a decision

Learn BashUncategorizedtutorial
BASH Comments [Part 3]
Learn Bash 2 min read

BASH Comments [Part 3]

Welcome to third article of BASH scripting series. Today we’ll dive into a very important topic, BASH comments. Comment, in programming, is different from the online world of the Internet where you read an article or a blog and then post opinions or applaud the author in the comment section. * BASH Comments * Why comment code? * The #!/bin/bash line * Conclusion BASH Comments Comment is one or more sentences written in your preferred language explaining how the

Learn BashUncategorizedtutorial
Variables in BASH - Learn BASH
Learn Bash 6 min read

Variables in BASH - Learn BASH

Welcome to the second chapter of BASH scripting series in which we will discuss variables in bash. Did you know that every programming language has a way to let programmers declare variables in their programs? But what exactly are they and why do we need variables in programming? Please read on below to learn more about variables. * What is a variable? * Variables in BASH * Rules to follow * Purpose of variable * Examples * Simply store * Compute and stor

Learn BashUncategorizedtutorial
Introduction To BASH Scripting - Learn BASH | Part 1
Learn Bash 4 min read

Introduction To BASH Scripting - Learn BASH | Part 1

Welcome to the introductory series on BASH scripting. This series will cover a complete guide on BASH scripting starting from the foundation of computer programming then progressing on to the basic constructs of this scripting language and finally, you will also create a simple mini-project using this scripting language. BASH is short for Bourne-again Shell, a superset (as in updated version) of Shell scripting language developed by Brian Fox in the mid-1980s. Ever since it has been wide

Learn BashUncategorizedtutorial