view bin/print_args_or_input @ 9226:bd9412a7e1d8

<oerjan> ` echo \'test\' > "$(echo \'Rosebud!\')"
author HackBot
date Mon, 10 Oct 2016 23:46:04 +0000
parents 56dcce63901b
children
line wrap: on
line source

#!/bin/bash
if [ "$#" -gt 0 ]; then printf '%s\n' "$*"; else cat; fi