logoalt Hacker News

Lammyyesterday at 7:31 PM1 replyview on HN

`sed -i` is one command: https://www.gnu.org/software/sed/manual/sed.html#index-_002d...


Replies

jerfyesterday at 7:43 PM

And you built a static site generator.

Or at least, you will have as you realize things like you only wanted to do that on certain categories or whathaveyou.

You can in principle just write HTML with no script support, but it itself becomes an exercise in conspicuous asceticism. It is not unreasonable to want things like "the last 5 posts" on every page on a blog, or an RSS feed, or any number of other very basic, simple things that are impractical with an editor and raw HTML.

show 1 reply