#!/bin/bash DEVICE_NAME=$(hostname) echo "This script is running on ${DEVICE_NAME} where '${DEVICE_NAME}' is the output of the 'hostname' command."