Assuming your file is called data.txt, is this something along the lines of what you want?
#!/bin/sh
while read line
do
if [ `echo $line|egrep -c "^GE"` -ge 1 ]
then
echo $line|cut -c6-
fi
if [ `echo $line|egrep -c "^GS"` -ge 1 ]
then
echo $line|cut -c8-
fi
if [ `echo $line|egrep -c "^INS"` -ge 1 ]
then
echo $line|cut -c10-12
fi
done<data.txt
If not, perhaps you could provide some pseudo code for what your requirement is