How to test ssh connection using bash script in Linux
There can be multiple scenarios due to which ssh connection may fail, some of them can be network issues password incorrect passphrase incorrect and many more.. so we will try to rule out all the
There can be multiple scenarios due to which ssh connection may fail, some of them can be network issues password incorrect passphrase incorrect and many more.. so we will try to rule out all the
In my last article I had shared some samples script examples to compare decimal values and floating numbers by converting them into integer which can work well for some scenarios but would not be the
You may have some requirement wherein you have to cut a row or get some output from a file and append it to another file as a prefix or suffix. or you know that you
In my last articles I had shared the arguments with sed which can be used to perform case insensitive actions (search, replace..) in a file and to delete all blank lines from the file. Now
By default when we perform search and replace action using sed, that is done globally within a file. Although if you have a line number you can perform the replace based on the line number
Here our requirement is to remove all the blank lines from a file. Our sample file [root@golinuxhub ~]# cat /tmp/file This is line one This is line two This is line three This is line
In this article I will show you different ways to perform an action (as per your requirement) ignoring the case of the letters to be searched in a file Below is our sample file #
In this article I will show you various sed expressions which can be used and combined to print or delete specific line from a file IMPORTANT NOTE: My examples provided are only to print the