Bash Basics

Les Variables

Bash is very powerful, and mastering it can dramatically increase your productivity. This post is just a primer with some of the more useful features I have come across so far.

Follows the format: “name=value”. The ‘$’ character is used to access the value of a variable, i.e. “$name”.

NUMBER_OF_DUCKS=50
SAVE_NUMBER_OF_DUCKS=$NUMBER_OF_DUCKS

Sources (most of them)

https://www.tldp.org/LDP/Bash-Beginners-Guide/html/Bash-Beginners-Guide.html#chap_01

Bash Basics

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top