annotate bin/wercome @ 11113:aa8e4791536e

<oerjan> learn print_args_or_input Is a utility command that makes it easy to create a shell script that can be used either as a pipe or directly as a HackEgo command. Use as print_args_or_input "$@" | yourShellCode . See also shebang_args_or_input.
author HackBot
date Sat, 22 Jul 2017 00:45:19 +0000
parents 4d7f1e7a9c7f
children ef5ba4348bf2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3509
6eb1b867a767 <oerjan> sed \'s/welcome/wercome/g\' bin/welcome > bin/wercome
HackBot
parents:
diff changeset
1 #!/usr/bin/perl -w
9722
4d7f1e7a9c7f <oerjan> sled bin/wercome//s/jp/ja/
HackBot
parents: 9721
diff changeset
2 if (defined($_=shift)) { s/ *$//; s/ +/ @ /g; exec "bin/@", $_ . " ? welcome.ja"; } else { exec "bin/?", "welcome.ja"; }