I'm trying to create a bash script.I never wrote bash in my life, I haven't even used Linux ever, so, after a bit of googling and thinking I decided to create a script that asks you the question "Which video do you wanna watch?" and it giving you 3 options, 2 for 2 videos and 1 to close the script.After a bit of googling and studying, this is the code I came up with:
#!/bin/bash echo "What type of video do you want to see?" select video in video1 video2 close_program case $video in video1 ) xdg-open https://www.youtube.com/watch?v=xQ9MpPIs1jM video2 ) https://www.youtube.com/watch?v=T2uWvrwq4T4 close_program ) exit;; esac done
Of course, it's not perfect, so here I am, asking for tips to improve it.