elsamuko / linuxtag_2022_bash

Sources for Bash Scripting Workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linuxtag

Sources for Bash Scripting Workshop

Basics

  • shebang
  • comments
  • echo & printf
    • escaping
    • colors
  • functions
    • arguments
  • controls
    • for
    • while
    • if
    • case
  • variables
    • global
    • export
    • local
    • default
  • arguments
    • first $1
    • all $*
    • all $@

Files

  • touch/rm
  • read/write

Advanced

  • pipes
    • PIPESTATUS
    • piped input
  • subshells
  • sourcing
  • arrays
  • maps
  • output (2>&1)
  • trap
  • special variables
    • RANDOM
    • BASH_SOURCE

More Advanced

  • getopts
  • logging
  • networking
    • nc
    • curl
  • cryptography
    • openssl
  • zenity
  • auto completion

Unit Testing

Code checking

  • shellcheck

Code formatting

  • shfmt -ci -sr -i 4 -w script.sh

More

About

Sources for Bash Scripting Workshop


Languages

Language:Shell 100.0%