Am Mon, den 22.12.2003 schrieb Thiemo Seufer um 19:52:
> Gaudenz Steinlin wrote:
>
> The appended hack works as long as both lists have the same length.
This should be the case. I once thought about shift but did not realize
that it's not only used to shift script parameters but also to shift
function paramaters. Thanks for this little hack, it should work in my
case.
Gaudenz
>
>
> Thiemo
>
>
> #!/bin/sh
> #
> dumb_join ()
> {
> for i in $second; do
> echo $i:$1;
> shift
> done
> }
>
> first=$(cat $1)
> second=$(cat $2)
> dumb_join $first
>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]