#!/bin/bash
m=$(dpkg -l inconcert)
while read -r m
do
  if [[ $m != *"Desired"* && $m != *"Trig-pend"*  && $m != *"Status"* ]]; then
    version=$version$(awk '$3');
  fi
done <<< "$m"

IFS=' ' read -ra ADDR <<< "$version"

fullversion="${ADDR[@]:2:1}"

IFS='+' read -ra ADDR <<< "$fullversion"

echo "${ADDR[@]:0:1}"

