Cleaning the name of Device

This commit is contained in:
Patrick Schindelmann 2019-10-22 11:40:10 +02:00
parent 7c86451e5f
commit 1918adb9c6

View File

@ -156,7 +156,7 @@ do
fi fi
OUTDEV=$(echo "$RESULT" | awk -F: '{print $1}') OUTDEV=$(echo "$RESULT" | awk -F: '{print $1}')
OUTMODEL=$(echo "$RESULT" | awk -F: '{print $2}' | tr -cd '[:print:]') OUTMODEL=$(echo "$RESULT" | awk -F: '{print $2}' | tr -cd '[:print:]' | tr -s ' ' ' ' )
OUTTEMP=$(echo "$RESULT" | awk -F: '{print $3}') OUTTEMP=$(echo "$RESULT" | awk -F: '{print $3}')
OUTTEMPCLEAN=$(echo "$OUTTEMP" | tr -dc '0-9') OUTTEMPCLEAN=$(echo "$OUTTEMP" | tr -dc '0-9')