#!/bin/sh menu () { echo 1\) do it again echo 2\) exit read inp case "$inp" in 1) file --version menu ;; 2) exit ;; esac } menu