#!/bin/sh set -e OK_RESULT='[{"a1":{"addr_number":5,"addr_type":3},"cmd":"d","line":1}]' result=`sedparse -e 5d | tr -d '\n' | tr -d ' '` [ "$result" = "$OK_RESULT" ] || exit 1 exit 0