Hello Everyone! I have a file called �cells� with 3 set of #'s, roughly 400+ lines. My current tool "movrcs" grabs the �cells� file, and creates one huge �mov_rcs� script which is a problem. I want the tool to grab 20 lines of the "cells" file at a time, and create separate script files for them, not one huge output script. Any assistance is greatly appreciated!!!!
omp root> cat cells
62 33 34
103 44 43
104 44 43
105 44 43
106 44 43
107 44 43
108 44 43
109 44 43
110 44 43
112 44 43
�Output truncated, there are over 250+ lines
omp root> cat movrcs
while read cell prim alt
do
echo "/omp/bin/TICLI -1 move:rcs $cell,altap $alt" >> mov_rcs
echo "sleep 20" >> mov_rcs
echo "/omp/bin/TICLI -1 move:rcs $cell,priap $prim" >> mov_rcs
echo "sleep 40" >> mov_rcs
done < cells
ompeps root> cat mov_rcs
/omp/bin/TICLI -1 "move:rcs 62,altap" 34
sleep 60
/omp/bin/TICLI -1 "move:rcs 62,priap" 33
sleep 60
/omp/bin/TICLI -1 "move:rcs 103,altap" 43
sleep 60
/omp/bin/TICLI -1 "move:rcs 103,priap" 44
sleep 60
/omp/bin/TICLI -1 "move:rcs 104,altap" 43
sleep 60
/omp/bin/TICLI -1 "move:rcs 104,priap" 44
sleep 60
�..output truncated