Mercurial > repo
view misle/rn_append @ 11502:e77e2d4c642d draft
<singingbanana> le//rn welcome.wu/Welcome Wo Wehe Winternational wuhub wufor wesoteric wuprogramming wulanguage wudesign wand wudeployment wu! Wufor wumore winformation wucheck wout wour wiki: <wuttp://wesolangs.worg/> (Wufor Wuthe wother Wukinds wof wesoterica, wutry #wesoteric won WEFnet wor WUDALnet)
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Fri, 13 Apr 2018 15:38:44 +0100 |
parents | ded267d9c0ad |
children |
line wrap: on
line source
#!/bin/bash [[ "$1" = */* ]] || exit topic=$(echo "$1" | lowercase | cut -d / -f 1) [ -z "$topic" ] && exit 1 stuff=$(echo "$1" | cut -d / -f 2-) perl -i -p -e 's/\n/ /' "tmflry/$topic" echo "$stuff" >>"tmflry/$topic" echo -n "Was lied to about '$topic': " cat "tmflry/$topic"