EXEC_SHELL_PATH=$(command -v bash) # Use sensors command and extract GPU temperature data temperature=$(sensors | grep "edge" | awk '{print $2}' | cut -c 2-) # Output the formatted temperature with a label echo "GPU: $temperature"