annotate bin/print_args_or_input @ 5612:794f3859f02c

<tswett> learn sex is a board game which originated in Britain in the 1870s before spreading throughout Europe in the 1890s. Sex was introduced to the rest of the world by a book, "The Complete Guide to Sex", written and published by Taneb in 1932, based on Taneb\'s extensive experience with a wide variety of forms of European sex.
author HackBot
date Thu, 18 Jun 2015 01:06:51 +0000
parents ab96ba09ae17
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4555
ab96ba09ae17 <oerjan> sed -i \'1i#!/bin/bash\' bin/print_args_or_input
HackBot
parents: 4488
diff changeset
1 #!/bin/bash
4488
9c8449758bbd <ion> printf \'%s\\n\' \'if [ "$#" -gt 0 ]; then printf \'\\\'\'%s\\n\'\\\'\' "$*"; else cat; fi\' >bin/print_args_or_input && chmod 755 bin/print_args_or_input
HackBot
parents:
diff changeset
2 if [ "$#" -gt 0 ]; then printf '%s\n' "$*"; else cat; fi