List all local linux disks
I was writing a script to interact with all local disks and i needed a simplied list of local disks, not partitions and not the loopback mounts..This is what I came up with
lsblk -d | cut -f 1 -d" " | tail -n +2 | grep -v loop
Which will give you a nice parseable output something like this
1sda
2sdb
3nvme0n1
4nvme1n1