problem with ncurses-dialog checklist
Hi!
I am trying to write a script in (well - modify a sample script of) ncurses' dialog using the checklist widget.
It all works just fine, until I want to see which items had been turned on and act on each one individually. I've tried if [ -n $( cat outfile | grep item) ] to see wether item was in the output, but with some combination of coiches or another, bash gives me the error of "unary" or "binary operator required".
Surely, there must be a very simple solution to this...?
TIA, Mik
|