I am trying to write a simple script that will iterate through all drives except sda. Right now I have this
for i in $(find /dev/ -name "sd*" ! -name "sda*") do echo $i done
However this includes partitions like
/dev/sdb1, whereas I only want the root drive like
How do I modify the find statement to guarantee I don't get any of the numbered files?