Mercurial > repo
annotate wisdom/`hello @ 12155:9e25c5563e7e draft
<b_jonas> `` /bin/sed -i \'s/humor,/humor, \\\\/\' "/hackenv/wisdom/rules of wisdom"
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Mon, 18 Nov 2019 08:24:30 +0000 |
parents | 2a34e647b1b7 |
children |
rev | line source |
---|---|
11659
2a34e647b1b7
<b_jonas> perl -e open$I,"<",($n="wisdom/`hello") or die; local$/; $c=<$I>; eof$I or die"e"; $c=~s!/d,/d/!/o,/o/! or die "s"; open $O,">",$n or die"O"; print $O $c or die"p"; warn "edited $f;";
HackEso <hackeso@esolangs.org>
parents:
10267
diff
changeset
|
1 `hello prints variants of hello, world. To control format, pass a single letter as command-line argument. "@"=>"hello, world", "H"=>"hello, world.", P=>"hello, world!", "X"=>"hello, world,", take 1 letter later to s/h/H/, 2 letter later to s/o,/o/, 4 letter later to s/w/W/, lowercase to remove newline. |