I have a string like this, name it Options:
"printer-is-accepting-jobs=true printer-is-shared=false printer-location=Library printer-make-and-model='HP LaserJet 600 M601 M602 M603' printer-state=3"
they are "options=values" format, separated by spaces. but the "printer-make-and-model" has value with spaces.
tried command:
for word in $Options; do echo $word; done
all the HP LaserJet 600 M601 M602 M603 are splited.
How to deal with this in bash command?