Mercurial > repo
changeset 12337:e9c3120bed34 draft
<wib_jonas> `` cat olist.new > /hackenv/bin/olist
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Thu, 16 Jul 2020 13:31:17 +0000 |
parents | fe7072a30baf |
children | 7d992c17deb9 |
files | bin/olist |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/olist Fri Jul 03 10:20:25 2020 +0000 +++ b/bin/olist Thu Jul 16 13:31:17 2020 +0000 @@ -1,4 +1,5 @@ -echo -n "$(basename "$0")${@:+ }$@: "; tail -n+2 "$0" | xargs; exit +#!/bin/bash +set -e; n=$*; [[ $n = +([0-9]) ]] && n=https://www.giantitp.com/comics/oots$n.html; echo -n "olist${n:+ }$n: "; tail -n+3 "$0" | xargs; exit shachaf oerjan Sgeo