In my script I was working with the first line's elements. After That I need to find lines which start with element of first line.
file=$1
target=$2
while read line
do
if [ "$line" != "" ]
then
set $line
if [ "$1" = "$target" ]
then
if [ "$2" = ":" ]
then
for i in $3 $4 $5 $6
do
if [ "$i" -nt "$1" ]
then
for j in cat $file //I dont know what to add here?????
do I need to find $i in lines which begin with i
if [$j = $i]
fi
done
fi
fi
fi
done< $file