[Video] this BASH script will KILL you.


Build your own Elden Ring with Linode: and you get a $100 Credit good for 60 days as a new user!

In this episode of the BASH scripting series, NetworkChuck covers BASH conditionals and harnesses this power to create Elden Ring inside of a bash script. Along the way, NetworkChuck also covers nested conditionals, or nested if statements, as well as elif and case…

23 Comments on “[Video] this BASH script will KILL you.”

  1. Build your own Elden Ring with Linode: https://ntck.co/linode and you get a $100 Credit good for 60 days as a new user!

    In this episode of the BASH scripting series, NetworkChuck covers BASH conditionals and harnesses this power to create Elden Ring inside of a bash script. Along the way, NetworkChuck also covers nested conditionals, or nested if statements, as well as elif and case statements.

    0:00 ⏩ Intro

    0:29 ⏩ the challenge

    1:50 ⏩ Sponsor Message

    3:24 ⏩ Elden Ring Script Setup

    4:05 ⏩ Bash Conditionals (if statements)

    7:58 ⏩ Elden Ring Bash Conditionals

    13:40 ⏩ BOSS BATTLE (Using OR in bash)

    15:39 ⏩ other options in Bash Conditionals

    19:22 ⏩ Nested IF Statements (Bash Conditionals)

    21:33 ⏩ ELIF statements

    23:53 ⏩ CASE statements (a switcher)

  2. Hey! Great video, just wanted to correct one statement you made. It's true Python didn't use to have a switch/case statement(Pre 3.10). However, in 3.10 they introduced the match-case statement which is a pretty much first-class implementation of the concept.

    Would be written as such:
    def f(x):

    match x:

    case 'a':

    return 1

    case 'b':

    return 2

    case _:

    return 0 # 0 is the default case if x is not found

Have a comment? Type it below!