This may or may not be a newbie question, but a newbie I am. I need guidance defining a command variable that will return the Code: disk# The trick is that I need the script to look at the disks (not partitions) that are between 2GB and 8 GB in size, and return the disk#. In plain english, I want for the command to: "Tell me the disk number of drives that are between 2Gb and 8Gb. If there is more that one drive that meets the criteria, or if there are none, then just yell "Error"." I am going to be doing a dd command to restore an image file to a removable thumb drive and I want to avoid restoring the image to one of the system's hard drives. Any help or guidance is greatly appreciated. Thank you.