regex tutorial

Regex tutorial for Linux (Sed & AWK) examples

To successfully work with the Linux sed editor and the awk command in your shell scripts, you have to understand regular expressions or in short regex. Since there are many engines for regex, we will use the shell regex and see the bash power in working with regex. First, we need to understand what regex […]

awk command

30 Examples for Awk Command in Text Processing

In the previous post, we talked about sed command and we saw many examples of using it in text processing and we saw how it is good in this, but it has some limitations. Sometimes you need something powerful, giving you more control to process data. This is where awk command comes in. The awk […]

sed Linux

31+ Examples for sed Linux Command in Text Manipulation

In the previous post, we talked about bash functions and how to use them from the command line directly, and we saw some other cool stuff. Today we will talk about a handy tool for string manipulation called sed or sed Linux command. We use sed to work with text files like log files, configuration […]

bash functions

Bash Scripting Part6 – Create and Use Bash Functions

Before we talk about bash functions, let’s discuss this situation. When writing bash scripts, you’ll find yourself that you are using the same code in multiple places. If you get tired of writing the same lines of code again and again in your bash script, it would be nice to write the block of code […]

Linux señales y trabajos

Linux Bash Scripting Part5 – Signals and Jobs

In the previous post, we talked about input, output, and redirection in bash scripts. Today we will learn how to run and control them on a Linux system. Till now, we can run scripts only from the command-line interface, but this isn’t the only way to run Linux bash scripts. This post describes the different […]

Linux shell scripting Input, Output, and Redirection

Shell Scripting Part4 – Input, Output, and Redirection

In the previous post, we talked about the parameters and options in detail. Today, we will talk about something essential in shell scripting, which are Input, Output, and Redirection. You can display the output from your shell scripts in two ways: Display output on the screen. Send output to a file.     Standard file […]

Linux Bash Scripting Parameters and Options

Linux Bash Scripting Part3 – Parameters and Options

So far, you’ve seen how to write Linux bash scripts that do the job without user inputs. Today we will continue our series about Linux bash scripting. I recommend you review the previous posts if you want to know what we are talking about. Bash scripting basics Bash scripting – For & while loops   […]

Shell scripting tutorial

Shell scripting step by step tutorial

In this tutorial, we are going to talk about shell scripting and how to make your first shell script. They are called shell scripts in general, but we are going to call them Bash scripts because we are going to use Bash among the other Linux shells. There are zsh, tcsh, ksh, and other shells. […]

Linux command line tricks

16 Useful Linux Command Line Tips and Tricks

We use the Linux command line every day, and due to the little practicing, we may forget some of the Linux command line tricks. In this post, I’m going to show you some of these Linux command line tips and tricks that you might forget or maybe new to you, so let’s get started.   […]