only check lines if there is a result of cmd