annotate bin/print_args_or_input @ 5020:fb86bf0b485a

<oerjan> fetch http://oerjan.nvg.org/gcccomp
author HackBot
date Mon, 06 Oct 2014 05:38:14 +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