Image for post
Image for post

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.

The project…

Photo by Christina Morillo from Pexels
Photo by Christina Morillo from Pexels
Photo by Christina Morillo from Pexels

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.

Prerequisites

To feel comfortable continuing with this article, You need some hands on work with terminal’s bash. …

Image for post
Image for post

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.

Think of Redis database as a very long javascript object. You have…

Image for post
Image for post

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. …

Image for post
Image for post

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.

Chaining Commands with && and ||

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. …

Image for post
Image for post

Starting from JavaScript ES6 and later, we became able to write classes the way we used to in other programming languages and as a result, we can also create instances the same way using the new keyword. Along with that, we got some of the OOP features like inheritance.

That said, JavaScript still has a long way towards being a fully object-oriented language — we are talking about vanilla JavaScript, so TypeScript is out of the conversation.

Now to understand what happens when you create a new instance. Let’s consider the following example:

class Animal{ species; constructor(){} } class Dog…

Image for post
Image for post

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

Basics:

Once you make sure that sed is…

A. S. Zaghloul

Lead Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store