Hi there i am trying to make a script for use cdemu to mount image (because gcdemu never works for me).
i am trying to make a list of supported formats
$ cdemu enum-parsers
Supported parsers:
PARSER-MDX: MDX Image Parser
application/x-mdx: DaemonTools images (*.mdx, *.mds)
PARSER-HD: Hard-disk Image Parser
application/x-apple-diskimage: Apple Disk image (*.cdr)
application/x-apple-diskimage: Apple Disk image (*.smi)
application/x-apple-diskimage: Apple Disk image (*.img)
PARSER-READCD: READCD Image Parser
application/x-cd-image: readcd images (*.toc)
PARSER-ISO: ISO Image Parser
application/x-cd-image: ISO images (*.iso, *.bin, *.img)
audio/x-wav: WAV audio files (*.wav)
PARSER-XCDROAST: X-CD-Roast Image Parser
application/x-xcdroast: X-CD-Roast images (*.toc)
PARSER-CCD: CCD Image Parser
application/x-ccd: CloneCD images (*.ccd)
PARSER-C2D: C2D Image Parser
application/x-c2d: WinOnCD images (*.c2d)
PARSER-CDI: CDI Image Parser
application/x-cdi: DiscJuggler images (*.cdi)
PARSER-B6T: B6T Image Parser
application/x-b6t: BlindWrite 5/6 images (*.b5t, *.b6t)
PARSER-NRG: NRG Image Parser
application/x-nrg: Nero Burning Rom images (*.nrg)
PARSER-CUE: CUE Image Parser
application/x-cue: CUE images (*.cue)
PARSER-TOC: TOC Image Parser
application/x-cdrdao-toc: cdrdao images (*.toc)
PARSER-MDS: MDS Image Parser
application/x-mds: Alchohol 120% images (*.mds)
application/x-xmd: GameJack images (*.xmd)
PARSER-CIF: CIF Image Parser
application/x-cif: Adaptec Easy CD/DVD Creator images (*.cif)
i need extract the format list supported and put inside of a new array like
SuportedFormats=(
mdx
mds
cdr
smi
img
toc
ccd
c2d
cdi
b5t
b6t
nrg
cue
xmd
cif)
but the format list can change depend of version of cdemu.
Another thing i want to change the uppercase extension to lowercase. i try with
tr '[:upper:]' '[:lower:]' "${1##*.}"
But i don't now how to use it