view bin/print_args_or_input @ 6658:c1477023c681

<oerjan> mkx bin/echo-p//echo "$1"; [[ "$1" == */* ]] && mkdir -p "${1%/*}" 2>/dev/null
author HackBot
date Tue, 09 Feb 2016 01:12:38 +0000
parents 56dcce63901b
children
line wrap: on
line source

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