Currently writing a management menu interface for managing printers on our HP UX system.
Scripts are written in Korn Shell.
The following command
returns the following:-
printer TERRYTST disabled since Apr 10 08:36 -
fence priority : 0
I need to be able to search the response for keywords to identify states.
So I need to fill a variable with 1 if the printer is disabled, another variable with 1 if its new.
No idea how to complete this in Korn Shell scripting as am very new to the language.