lsblk -n -o NAME,TYPE | awk '$2 == "disk" {print $1}' | grep -v '[z].*$'
Show me all Block devices without the Partition definitionsJuly 16, 2019 ยท wiki@snet.atlsblk -n -o NAME,TYPE | awk '$2 == "disk" {print $1}' | grep -v '[z].*$'