#!/bin/sh
 
host=$1
start=$2
end=$3
from=$4
to=$5
i=$start
while [ $i -le $end ]
do
        echo ${host}${i}
        scp  $4 root@${host}${i}:$to
        i=`expr $i + 1`
done
