#!/bin/sh # Copy files into created directory in one call [ "$#" -gt 2 ] || exit 2 for dir ; do : ; done mkdir -p -- "$dir" || exit cp -R -- "$@"