diff bin/olist @ 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 c989a1669243
children 62c19dc0cc7c
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