ID=$1
ESTADO=$2
+ FECHA=`date +"%Y%m%d"`
+ HORA=`date +"%H%M%S"`
+
if [ "$ESTADO" != "A" ] && [ "$ESTADO" != "I" ] ; then
return 1
fi
- SALIDA=`sed "s/^$ID\(;[^;]*;[^;]*;[^;]*;\)[^;]*\(;[^;]*;[^;]*;[^;]*\)$/$ID\1I\2/" "$BASE_DIR/umbrales.param"`
+ SALIDA=`sed "s/^$ID\(;[^;]*;[^;]*;[^;]*;\)[^;]*\(;[^;]*;[^;]*;[^;]*\)$/$ID\1I;$USER;$FECHA;$HORA/" "$BASE_DIR/umbrales.param"`
echo "$SALIDA" > "$BASE_DIR/umbrales.param"
}
fi
done
- DATOS=`cat "$BASE_DIR/umbrales.param" | grep "[0-9]*;$LINEA"`
+ DATOS=`cat "$BASE_DIR/umbrales.param" | grep "[0-9]*;$LINEA;[A-Z]*;[E,S];A"`
printf "%3s %2s %1s %1s %10s%8s %6s\n" "ID" "Ciudad" "Tipo" "Estado" "Usuario" "Fecha" "Hora"
OPCIONES="-1"