#!/bin/sh # Given N arguments, print the first N/2 arguments, rounding down. take=`expr $# / 2` while test $take -gt 0 do echo -n "$1 " shift take=`expr $take - 1` done