How to find whether the device is iPhone or iPad
<p>I am trying to check whether the connected device is iPhone or iPad. I am able to print the device udid. But is there anyway we can see the device is iPad or iPhone using shell script or any other way. </p>