#!/bin/bash file_name=$1 page_num=$2 for id in `cat $file_name` ; do echo "id: $id page_num: $page_num" echo "" ./RUN.sh $id $page_num sleep 2 done