Nice script! Small adjustment to arbitrary number of drives:
DEVICES=`nvme list -o json | jq -r '.Devices[].DevicePath'`
for dev in $DEVICES; do
Nice script! Small adjustment to arbitrary number of drives:
DEVICES=`nvme list -o json | jq -r '.Devices[].DevicePath'`
for dev in $DEVICES; do