sed: Insert multiple lines before or after pattern match
In my last articles I had shown you the arguments to be used with sed to add or append any character in the beginning or end of the line and
In my last articles I had shown you the arguments to be used with sed to add or append any character in the beginning or end of the line and
Here our requirement is that we have a file where we have to perform a string replacement **but based on line number.** Below is our sample data /tmp/file 1 This
Here our requirement is to replace a line with our content when a match is found with in the file Our sample file /tmp/file This is line one This is
Before is the requirement for this example. I have a sample file with below content at /tmp/file This is line one This is line two This is line three This
There are many ways to do this, I will try to show some Sample file '/tmp/file' Apple Apricot Avocado Banana Bilberry Blackberry Blackcurrant **Method 1** Using 'nl' # nl /tmp/file
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]({{< relref "sed-case-insensitive-actions-search/index.md" >}}) and to [delete all blank
#### How to append a string after a match? For eg I have a text line "**This is not test**" where I would like to insert "**really**" after matching "**is**"
#### Unable to connect to iCloud Server or iTunes from your laptop? I recently did an update of iTunes on my laptop after which I was unable to re-login to
I got this error the other day while working on Red Hat Enterprise Linux 7.3 and after digging for a while I got to know there is a sort of
In another article I have shared [step by step guide to configure IPv6 in Linux with examples](https://www.golinuxcloud.com/how-to-configure-ipv6-address-in-linux-rhel-centos-7/) and in this article I will share the steps to disable and enable