Bash script implementation for my Chain Scripting technology specification.