How can I display all jobs that ended OK only?
When I try the command below, it shows both OK and NOTOK since both have \"OK\"
ctmpsm -listall applic
^ marks the beginning of the line and $ marks the end of the line. This will return exact matches of "OK" only.
^
$
(This also works with double quotes if that's your preference.)
grep '^OK$'