The WordPress clone written in GNU Bash

header image
Posted on Oct 18, 2013 14:35PM

Introduction to WordBash

WordBash is a Bash Shell Script

WordBash is written, if you do not already know, in Bash, the GNU Bourne-Again SHell. All content is generated by a shell script. All comments are parsed, stored and displayed by Bash. And when I say the code is written in Bash, I mean (with only one exception explained later): No SED. No AWK. No TR. Just 100% Bash.

It has been tested with Linux, Mac OS-X and Windows/Cygwin. Bash at least 3.2 is required.

These posts will describe WordBash in detail, and make some claims about it. Ultimately though, of course, the code gets the last word.

Code is here: wordbash-1.0.3.zip and here: WordBash.

Update: July 2023

I want to emphasize what I mean by 100% Bash.

No doubt you have searched for "how to do [something] in Bash" (or seen other people doing that) and the "answer" was actually how to do it with a "textutil". (Or a GNU Textutil, Fileutil, Shellutil, or Binutil.)

How to do something in sed is not how to do something in bash.

Same goes for pattern matching (or regular expressions) "in Bash". If all the examples one supplies are with ls, that's file globbing; or with grep, that's using grep.

I wish people would get that.

#1 WordBash on Feb 2, 2014 17:13PM said:

Comments have HTML stripped, long words trimmed, links rejected...

And lines are turned into paragraphs.

#2 Hey on said:


Leave a Reply

Comment length is limited, all HTML will be stripped and do not submit links.

0m0.025s 0m0.025s 0m0.001s 0m0.005s