sbig-info would be more useful if it operated more like sysctl(8). That is, gather all info internally, then allow all of it or individual keys to be dumped. Keys can be hierarchical, output can be made more machine readable.
Now:
$ sbig info driver
version: 4.84
name: libsbigudrv Ver 4.84-LINUX
maxreq: 1
$ sbig info ccd imaging
firmware-version: 1.04
camera-type: ST-5C
name: SBIG ST-5C Camera
mode-0: 320 x 240 1.25 e-/ADU 10.00 x 10.00 microns
mode-1: 160 x 120 1.25 e-/ADU 20.00 x 20.00 microns
A/D-bits: 12
filter-type: 5 position
ccd-type: full frame
electronic-shutter: no
remote-guide-port: no
biorad-tdi-mode: no
AO8-detected: no
frame-buffer: no
use-startexp2: no
mechanical-shutter: yes
color-type: mono
...
Proposed (approx)
$ sbig info -a
driver.version = 4.84
driver.name = libsbigudrv Ver 4.84-LINUX
driver.maxreq = 1
ccd.imaging.firmware-version = 1.04
ccd.imaging.camera-type = ST-5C
ccd.imaging.name = SBIG ST-5C Camera
ccd.imaging.mode.0.width = 320
ccd.imaging.mode.0.height = 240
ccd.imaging.mode.0.gain = 1.25
ccd.imaging.mode.0.pixelwidth = 10
ccd.imaging.mode.0.pixelheight = 10
ccd.imaging.mode.1.width = 160
ccd.imaging.mode.1.height = 120
ccd.imaging.mode.1.gain = 1.25
ccd.imaging.mode.1.pixelwidth = 20
ccd.imaging.mode.1.pixelheight = 20
ccd.imaging.A/D-bits = 12
ccd.imaging.filter-type = 5 position
ccd.imaging.ccd-type = full frame
ccd.imaging.electronic-shutter = no
ccd.imaging.remote-guide-port = no
ccd.imaging.biorad-tdi-mode = no
ccd.imaging.AO8-detected = no
ccd.imaging.frame-buffer = no
ccd.imaging.use-startexp2 = no
ccd.imaging.mechanical-shutter = yes
ccd.imaging.color-type = mono
...
sbig-info would be more useful if it operated more like sysctl(8). That is, gather all info internally, then allow all of it or individual keys to be dumped. Keys can be hierarchical, output can be made more machine readable.
Now:
Proposed (approx)