Learn about scripts, functions, chmod and set -e | #2 Practical Bash

Sdílet
Vložit
  • čas přidán 17. 07. 2019
  • Building on our learnings from the previous video, it's time to write our first script. In this video, we'll write a script and use functions in our very first bash script. We'll make use of the chmod command to make it executable and play around with set -e and set +e to react to different cases
  • Věda a technologie

Komentáře • 8

  • @YBWang-pi9qq
    @YBWang-pi9qq Před rokem +1

    simple, practical, awesome! easy to learn

  • @shikharsubedi
    @shikharsubedi Před 4 lety +3

    very good video. really liked it. set -e is new to me

  • @MohamedHussien--
    @MohamedHussien-- Před 2 lety +2

    Your videos are awesome and simple!

  • @anuragvinit
    @anuragvinit Před 2 lety

    First of all Thanks for such a great video. Now a QQ : at 6:34 , why it doesn't print git push ?

  • @nope8605
    @nope8605 Před 2 lety

    why you set -e and +e in file .sh end you call ./tests.sh && echo "git push" at the end off the video but resolve not display " git push " ???

  • @e1Pr0f3ss0r
    @e1Pr0f3ss0r Před 3 lety

    Why ppl use
    test_function(){
    Blah blah blah
    }
    test_function
    As above?
    What's difference btw them?

  • @lazellekeith8025
    @lazellekeith8025 Před 3 lety

    good stuff but a little slower bro! Typing too fast to absorb what you're doing