Mercurial > repo
view wisdom/shebang_args_or_input @ 11298:41dd8e975605
<wob_jonas> perl -eopen$i,"<",($f="wisdom/aristotle");$_=<$i>; s/, even though.*\\. / without checking. / or die; if (1) { open$o,">",$f; print$o $_ or die; } print substr$_,0;
author | HackBot |
---|---|
date | Mon, 01 Jan 2018 18:06:06 +0000 |
parents | 08c7ff875739 |
children |
line wrap: on
line source
shebang_args_or_input is similar to print_args_or_input, but for other scripting languages like perl or python. E.g. if you have a python script that pipes stdin, replace the usual shebang line by "#!/hackenv/bin/shebang_args_or_input python".