Article of the week

Substituting file contents in place with BASH and sed

Substituting file contents in place with BASH and sed

05 Mar 2017 16:33:19


Article on substituting pieces of contents of a file in place with BASH and sed.


The problem of substituting file contents in place on the command line is an old one. Often it creeps out when dealing with configuration or other text files. You just need a quick substitution , perhaps with sed, but what you end up with is frequently either none or a wrong ...

Read full article »

Recent articles

BASH recursion examples - part 2

30 Jan 2017 17:08:29

BASH recursion examples - part 2

This article is a follow-up on the subject of writing recursive code in BASH. In the first part of the series I focused on a few more popular Maths functions and how one could implement them in BASH. In this instalment focus shifts to tasks one often comes across whilst ...

Read more »

Essential WordPress plugin hooks

17 Jan 2017 11:57:41

Essential WordPress plugin hooks

In this article I look at some essential WordPress hooks. By 'essential hooks' I mean actions and filters you use frequently when writing a WordPress plugin. Sometimes in the context of this article 'essential hook' refers to a hook you cannot do without to ...

Read more »

Bash recursion examples - part 1

15 Jan 2017 16:58:45

Bash recursion examples - part 1

Recursion in computer science is a technique based on two cases. One is non-recursive terminating case, the other, recursive. The former finds you the final solution, the latter reduces problem to the termination case. This is I guess the most important bit, one should ...

Read more »

Env and BASH declare

11 Jan 2017 12:58:48

Env and BASH declare

Environmental variables on a Linux based system like Debian are named strings available to all applications initialized from text console or some graphical interface. These variables are gradually added by various processes as your system starts. Once login shell is invoked ...

Read more »