2 Ways to Use Exit Code in Bash | Bash Scripting Tutorial for Beginners

Pubblicato il: 29 maggio 2022
sul canale di: Stacks Add Up
68
0

Learn when and why we should care about the EXIT CODES. Plus, you will know how to chain commands together without needing to have "if" and "else" blocks.

🔗 LINKS 🔗
All the examples are shown in this video: https://github.com/stacksaddup/bash-t...

📚 FREE GUIDE 📚: https://landing.stacksaddup.com/bash-...

⏱ TIMESTAMPS ⏱
00:00 2 Ways to Use Exit Code in Bash
00:38 Key points when using exit codes
01:01 Why do we care about exit codes?
01:56 The syntax to use the exit codes
02:17 Syntax/Explicit way: $?
03:48 Syntax/Implicit way: && and ||
04:51 Examples
05:09 Examples/Explicit way
07:27 Examples/Implicit way
10:58 Summary
11:58 More scripting tips: Bash Leveling Guide

#coding #commandline #developer #linux #linuxcommands #programming #shellscripting #bashscripting #softwareengineer #softwaredeveloper #softwareengineering #softwaredevelopment #devops #sysadmin


In questa pagina del sito puoi guardare il video online 2 Ways to Use Exit Code in Bash | Bash Scripting Tutorial for Beginners della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Stacks Add Up 29 maggio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 68 volte e gli è piaciuto 0 spettatori. Buona visione!