getting syntax error in sh shell with the command

Not getting the error in bash; checking output of command