Use of dot “.” in regular expressions during search/grep in bash shell linux ?
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 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...
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...
Today we will look how to get the service name listening to a particular port on Linux. The preferred and widely used command is netstat. With netstat, we can grep...
In this post, we will look at an interesting tip to keep two directories in sync with each other. It helps us to take backup of a directory and perform...
Here we will see a trick to save the command output to one or more files alongwith viewing the output on screen. This commandis very ueful for logging and at...
In this article, we will look different ways or tricks to count number of files inside a directory in linux. I. Get files inside /tmp Using “wc -l” command on...