What is IFS in linux bash shell ?
1. Introduction IFS stands for Internal Field Separator in Linux. $IFS is one of the system variable with default value “space, tab, and a new line”. This system variable signifies...
1. Introduction IFS stands for Internal Field Separator in Linux. $IFS is one of the system variable with default value “space, tab, and a new line”. This system variable signifies...
An interesting thing to do when creating shell scripts is to know how to color some text/output and blink it. Today in this article , we will look how to...
Positional parameters as its name suggests are different positional variables automatically defined by linux shell. The shell automatically assigns the passed parameters according to their position in 9 different parameters(1...
Let us look how to mount a filesystem from backup superblock location. In general this is not required, however sometimes in case you feel issue with primary superblock, this way...
Today we will look how to search some text in a file and replace specific string on the searched line. For this, we will use sed command i.e. Linux Stream...
Today we will look at the regex to search/grep multiple characters or words from a file or output in linux. First create a file with below contents. [root@nglinux ]# cat...
Today we will look at the usage of dot “.” on Linux bash shell and how to use it in shell scripts to match a pattern. I. Usage of “.”...
Today in this post, we will look how to get length of a variable in linux whether its a string or integer. Getting variable length in Linux 1. Using shell...
We all know that a variable is defined by simply assigning a value to it. However bash shell also provides a feature to unset it, in order to free it...
Today in this post, we will look how to search or grep special characters in a file text. To search special characters in linux, we need to escape them using...