I had quite a journey learning bash scripting and sharing what I’ve learned with you in the process, from basic commands to bash files and conditionals (I’ll share the list of these tutorial at the end of this thread below).
There are a lot still that we can learn but I’ll dedicate an intermediate series for this separate from the first one. Currently, It’s time to create a project .. a real world project that can be used in actual situations. That’s why I’ve learned bash in the first place, simply to automate tasks and be more productive.
Shell was originally built to be the medium and bridge between the operating system and the user. The user can write shell command that can tell the system to do some administrative tasks.
Currently, bash shell expanded to become a full programming language — aka Shell scripting — with a lot of functionalities of programming languages such as: conditionals, loops and functions.
In this article, we will explore bash not as a terminal tool but as a programming language.
To feel comfortable continuing with this article, You need some hands on work with terminal’s bash. …
Redis is a data storage tool or you can consider it a special type of database. Unlike relational databases -SQL databases — which is stored in tables and NoSQL databases which are stored in documents, Redis is a key-value pair database. What that means is that there is no columns with rows of data that has the same structure. There are no tables or collections which groups data under a certain entity. In redis there are databases, and then under it a certain amount of keys and values.
Everyday, someone, somewhere decides to build his or her own startup. And even if the product being built or the service provided is not mainly digital project, it still needs a website to promote the business and generate leads. In most cases, a developer will be needed.
Assuming that you are a software engineer, you will be approached in many stages of your career by a startup to start working for them. …
Once you have some basic practical knowledge of how to use shell commands, you kind of start to lean towards saving some time while performing a task. Whether it’s in a terminal or using an automation tool like jenkins. In this article (or the video version here) we will discuss some signs aka switches that will help you do that.
Sometimes you would need to perform multiple commands using one line instead of waiting for each command to finish in order to type the next one. In this situation, you need the && switch. …
Now to understand what happens when you create a new instance. Let’s consider the following example:
The find & replace functionality already exists built-in within all programming languages. But what if you are planning your deployment pipeline or just want to apply a start up script, and lets say you need to edit some files on the fly.
This is when sed command come to the rescue. If you are using Ubuntu or any other distribution of Linux, then you will have GNU sed command by default. However, if you are using Mac OS, you will need to install a full functional sed:
$ brew install gnu-sed — default-names
Once you make sure that sed is…
Lead Software Engineer