1 2 3
#!/bin/sh echo "$(nvidia-smi --query-gpu=utilization.gpu,utilization.memory --format=csv,noheader,nounits | sed 's/,//' | awk '{print $1"%", $2"%"}')"