#!/bin/bash while test 5 -eq 5 do read -p "Kerek egy parancsot: " parancs if test "$parancs" = "exit"; then echo "Biztosan ki akarsz lepni?" read -p "(y/n): " y if test "$y" = "y"; then kill -9 $PPID "exit" fi else $parancs fi done