sed Archives - Experiencing Technology https://blog.tinned-software.net/tag/sed/ Tinned-Software Blog Mon, 04 Jul 2016 15:14:17 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.4 Replace section in file with content from another file https://blog.tinned-software.net/replace-section-in-file-with-content-from-another-file/ Mon, 07 Dec 2015 18:50:35 +0000 http://blog.tinned-software.net/?p=1774 While automating things, you might come across the need to replace a block of lines within a file – like replacing a section with IP addresses you want to block in an .htaccess file. Automating this task means replacing this bunch of … Continue reading

The post Replace section in file with content from another file appeared first on Experiencing Technology.

]]>
Add a line into a huge file https://blog.tinned-software.net/add-a-line-into-a-huge-file/ Mon, 14 Sep 2015 18:41:47 +0000 http://blog.tinned-software.net/?p=1768 Handling huge files can be a massive challenge. In a previous post I have shown how to remove a range of lines from a huge file (which can also be used to just read a number of lines out of the … Continue reading

The post Add a line into a huge file appeared first on Experiencing Technology.

]]>
Remove a range of lines from a huge file https://blog.tinned-software.net/remove-a-range-of-lines-from-a-huge-file/ Fri, 10 Oct 2014 08:42:11 +0000 http://blog.tinned-software.net/?p=1567 When you have to deal with a huge file containing gigabytes of data and need to delete a range of lines from it, opening it with a text editor can be a fatal mistake. As an example, in this post I will demonstrate how to delete a whole database out of a huge SQL dump without messing around with a text editor. Continue reading

The post Remove a range of lines from a huge file appeared first on Experiencing Technology.

]]>