#!/usr/bin/ksh

if [ -f chev2.txt ]
then
 > chev2.txt
else
 touch chev2.txt
fi

i=1
while true
do
 tail -$i chev.txt|head -1 >> chev2.txt
 let i=i+1
 if [ $i -eq 482 ]
 then
  break
 fi
done 

