friends
I have the following code that works perfect
while read linea
do
largo=${#linea}
echo "largo es///////////: $largo "
if [ $largo -ne 171 ]
then
echo "Longitud De Registro Invalida"
echo " $linea > ERROR DE LONGITUD" >> $PATH_DAT/$ArchSalida
fi
done < ${PATH_DAT}/$ArchPro #while read linea
before this condition
if [ $largo -ne 171 ]
then
echo "Longitud De Registro Invalida"
echo " $linea > ERROR DE LONGITUD" >> $PATH_DAT/$ArchSalida
fi
I need to ask for the first 2 characters in the record