=============================================================================== blog.notryan.com/007.txt Sun, 03 May 2020 Ryan Jacobs 09:59:00 -0700 ./header.c >007.txt . . . . . . . . . . =============================================================================== Heyo! This is gonna be a quick post. I've upgraded my text-only blog with a new tool written in C! It's called header.c, and uh, well it generates this snazzy header you see here. I'm still using my `c` script I wrote ages ago. You can check it out here: https://github.com/ryanmjacobs/c. The whole source code is pretty grokable. I execute it like this: $ ./header.c 'Title of New Blog' > 123.txt Ha! C in script form. Who would've known? --- If I were to list my current directory, it would look something like this: $ ls -l total 44 -rw-r--r-- 1 ryan ryan 5839 May 3 07:10 001.txt -rw-r--r-- 1 ryan ryan 1610 May 3 07:10 002.txt -rw-r--r-- 1 ryan ryan 2301 May 3 07:10 003.txt -rw-r--r-- 1 ryan ryan 1987 May 3 07:10 004.txt -rw-r--r-- 1 ryan ryan 3179 May 3 07:10 005.txt -rw-r--r-- 1 ryan ryan 1012 May 3 07:10 006.txt -rw-r--r-- 1 ryan ryan 421 May 3 09:59 007.txt -rwxr-xr-x 1 ryan ryan 697 May 3 07:10 build.sh -rwxr-xr-x 1 ryan ryan 1213 May 3 07:10 header.c -rwxr-xr-x 1 ryan ryan 2832 May 3 02:45 server.c -rwxr-xr-x 1 ryan ryan 95 May 3 07:10 watch_build.sh Feel free to look around! Just punch in the url to view the source on any of my build files. --- Note: Right now there are a couple of weird quirks... They aren't bugs because they're intentional. Anyways, one of them I find kind of funny: I don't allow titles with an even number of characters. ... because those titles don't allow for a perfectly centered dotted underline. Having it lopsided by one character would annoy the hell out of me! I restrict myself to titles where strlen(input) % 2 == 1. --- Next on my bucket list: RSS.c :)