By admin
Bash For Loop usage guide for absolute beginners
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
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
There are various ways to print next word after pattern match or previous word before pattern match in Linux but in this article we will ...
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 ...
By admin
In this article I will share a sample script which will act as an interactive calculator using shell or bash script. Using this interactive calculator ...
By admin
In this article I will share a sample script to add thousands separator comma in a number which can be decimal or a full integer. ...