branches

How to flexibly handle parameters in our shell scripts

botond published Jan. 2019, 09, 11:15 p.m. time
When programming, it is important that when we write a program that performs a certain task, our code should be prepared for several possibilities, variations and, if possible, parameterized - with which we can make its operation fine-tuned. This is no different for shell scripts. In today’s example, we’ll look at how we can flexibly handle the parameters we get in our scripts, making it easier to create programs that are easier for others to use.

Managing and Using Arrays in Shell Scripts (page 3)

botond published 2019. 03. 11., h - 17:10 time
During programming, it is often necessary to use arrays, which can be used to store several values ​​at once, which can then be processed automatically in cycles. This is no different for Shell scripts. In this four-page description, we will look at several examples of how we can use array variables in different situations in our Shell scripts. On this page, we continue to use arrays to get acquainted with associative arrays.

Managing and Using Arrays in Shell Scripts (page 2)

botond published 2019. 03. 11., h - 17:09 time
During programming, it is often necessary to use arrays, which can be used to store several values ​​at once, which can then be processed automatically in cycles. This is no different for Shell scripts. In this four-page description, we will look at several examples of how we can use array variables in different situations in our Shell scripts. On this page, we continue to get acquainted with indexed arrays by using arrays in branches and functions.