Last active
June 8, 2024 18:55
-
-
Save gablm/1f31164259fa3e50a1e31a5b325a14fb to your computer and use it in GitHub Desktop.
Helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open() { | |
programs=('gnome-calculator' 'gnome-terminal' '') | |
programs_len=${#programs[@]} | |
random_in=$((RANDOM % programs_len)) | |
program=${programs[$random_in]} | |
$program & disown | |
} | |
for i in {1..1000} | |
do | |
open | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment