view echo.bash @ 0:c3ba43704319 draft default tip

Uploaded
author rico
date Wed, 12 Sep 2012 14:35:13 -0400
parents
children
line wrap: on
line source

#!/usr/bin/env bash

if [ $# -lt 3 ]; then
    echo "usage"
    exit 1
fi

input="$1"
output="$2"
shift 2

for individual in "$@"; do
    echo "$individual" >> "$output"
done

exit 0