Yes I had done that before but that also was not working....
try this shell:
total=`wc -l $1| cut -f1 -d" " `
while read linea
do
total=`expr $total - 1`
if [ ${total} -eq 0 ] || [ ${total} -eq 1 ]
then
echo "\t$linea"
else
echo "$linea"
fi
done < $1
Hies,
Many thanks for all the efforts.
Cheers,
Shazin