#!/usr/bin/env bash while : do output=$(./build/Lab4) if [ "$output" != "1" ]; then echo "$output" fi done