By admin
Bash Function Usage Guide for Absolute Beginners
New to bash or shell scripting? Let's start learning. Bash scripting can be considered the first step to learn programming languages. You may be in ...
By admin
New to bash or shell scripting? Let's start learning. Bash scripting can be considered the first step to learn programming languages. You may be in ...
By admin
Using bash while loop has it's own advantages compared to any other loops. How do you perform a certain task repeatedly in Linux or Unix ...
By admin
I get this question a lot from many users, how can I run a certain command in a loop for a defined period of time? ...
By admin
In my earlier article I gave you an overview and difference between strings and integers in bash. Now there are different comparison operators which can ...
By admin
How to create array from string with spaces? Or In bash split string into array? We can have a variable with strings separated by some ...
By admin
It is a normal or I would say daily use case for a Linux developer to work on a script which requires comparison of strings. ...
By admin
Log files can be used to gather details about the state of the system and attacks on the system.Suppose we have a system connected to the Internet with SSH enabled. Many attackers are trying to log in to the system. We need to design an intrusion detection system to identify users who fail their login attempts. Such attempts may be of a hacker using a dictionary attack. The script should generate a report with the following details:
By admin
Earlier I had written an article with the commands to check memory usage per process in Linux. Now what if you wish to check top ...
By admin
We can use the associative arrays of awk to solve this problem in different ways. Words are alphabetic characters, delimited by space or a period. First, we should parse all the words in a given file and then the count of each word needs to be found. Words can be parsed using regex with tools such as sed, awk, or grep.
By admin
Using this hash, we can compare the hash against a list of hashes already computed. If the has matches, we have seen the contents of this file before and so we can delete it. If the hash is new, we can record the entry and move onto calculating the hash of the next file until all files have been hashed.
By admin
The world of computing is deeply intertwined with the realm of text processing. Every configuration file you've edited, every script you've executed, every data you've ...
By admin
In this article I will share the steps to display equal alignment of multiple columns i.e. to convert space delimited to tab delimited using shell script.
By admin
In this article I will share a sample script to Calculate Loan EMI Amount using a shell script in Linux. While the formula to calculate payments ...