#!/bin/bash echo "$HOSTNAME: `dmesg | grep "setting mode" | tr -s " " | cut -d " " -f 8- | rev | cut -c 2- | rev`"