How to color a text/string in linux bash shell & make it blink ?
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...
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...
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...
One of the interesting interview question or concept for a directory or file on linux bash shell is “what are the default link count of a file/dir when its created.”...
Today in this post, we will look how to remove empty lines from a file in bash shell linux. This is the easiest way to achieve this task. Removing empty/null...