#!/bin/bash

i=0
for line in `cat $1 | awk '{print $1}'`
do
	i=$((i+1))
	echo $i
	if [ $i -le 0 ];then
		continue
	fi
	echo $line
	rsync -P --rsh=ssh yuhw@uboonegpvm02.fnal.gov:$line $2
	if [ $i -ge 1000000 ];then
		exit
	fi
done
