#!/bin/sh prep="$1" shift for n in "$@" do ret="$ret $prep$n" done echo "$ret"