lsusb | awk ‘{print $3 “ “$4 “ - “ $7 “ “ $8 “ “ $9}’
A=“\e[1;33m”
Е=‘echo -e “${A}OK” ‘
Есть команда показывающая кол-во подключенных ЮСБ к серверу и их наименование
lsusb is a utility for displaying information about USB buses in the system and the devices connected to them.
RED='\033[0;31m'
GREEN='\033[0;32m'
NORMAL='\033[0m'
OK="${GREEN}OK${NORMAL}"
NO="${RED}NO${NORMAL}"
lsusb |awk -v ok="$OK" -v no="$NO" '{print $3" "$4" - "$7" "$8" "$9" "no}'