`ed` is a simple built in Unix text editor.
It [ed] was one of the first parts of the Unix operating system that was developed, in August 1969.
ed (text editor)
`ed` can be used to write to empty files, and, more importantly, can inject content into existing ones.
ed + sh
An ed
file has a few commands, and a block of text:
```ed
0i <-- start on the 0th line at character 0
{SOME TEXT HERE}
. <-- leave input mode
w <-- write
q <-- quit
```
NB: `wq` made its way into `vi` as well
The ed file can then be passed directly into a shell script which acts as manager and coordinator.
The text from the ed file is piped into the `ed
` command and then inserted into `$1
` which is the file path of the existing file as an argument.
```sh
ed $1 < ~/scripts/sufferingfrom.ed
```
$ ed-script.sh ~/some-file.txt
Using technology from 1969 on a computer built in 2020. Does the Lindy effect apply to Unix as well?
Other News
Game development is easier and also harder than ever. This is also true of web development and programming in general (nb: I may write on this in longer post discussing complexity in the future)
ars longa, vita brevis
Bram