Skip to content
GoLinuxHub
  • Home
  • Linux Basics
  • Security
  • VMware
  • DevOps
  • Programming
  • Contact Me

Programming

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

Leave a comment

How to check and compare rpm version and release in Linux using bash script

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

1 Comment

sed: add or append character at beginning or end of line (row) of a file

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

Leave a comment

sed: Ignore whitespace while matching a pattern

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

Leave a comment

sed: perform search and replace only on specific lines (not globally)

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

2 Comments

sed: delete all blank lines from a text file

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

Leave a comment

sed: case insensitive actions (search replace delete..)

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 #

Leave a comment

10 Basic examples of SED to perform per line action (print/delete)

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

Leave a comment
Post navigation
Older posts
Page1 Page2 Page3 Next →

Recent Posts

  • 6 Best Practices For A Successful Cloud Backup
  • 5 reasons to try sports betting
  • How To Keep Your Business Data Secure In The Cloud 
  • 9 Tips For Safe And Secure Browsing
  • Some of the Most Helpful Tools Every Business Needs
  • How Long Does it Take to Create an Efficient Application?
  • Smart Home Devices Every Individual Must Have
  • What is a VPN and Why You May Need One
  • Mobile Casinos: Then and Now
  • The best screen recorders in 2021. What will be popular in 2022?
Copyright © 2023 | Hosted On Rocket.net