I want to check the result of a job and execute an action on FAILED.First: I grep the last word of the line in my application logfile (for the recent processed file ($processedfilename)): check1=$(grep $processedfilename $logfile | grep anotherword | \    grep FAILED | tail -1 | awk '{print $NF}')This results in [FAILED].Now I want to check on the resultif [ $check1 -eq [[FAILED] ] thenor if [ $check1 -eq \[FAILED] ] thenThere's always arithmetic syntax error.What's the correct syntax to check on [FAILED]?
How to compare strings in ksh
shell;quoting;ksh;test
You should always double quote variables.  And you need = for string equals.  So:if [ $check1 = [FAILED] ]; then