I'm working on a script to mount iso or img file, by combining these two
http://ubuntuforums.org/showpost.php...20&postcount=2
http://www.ubuntugeek.com/mount-isos...-nautilus.html

Since it feel slightly unnecessary to create two script, do i wonder how I can determine if the file is img, iso or neither?