Functions and Arrays in Linux | bash shell scripting

Published: 07 March 2023
on channel: nikkiinit
6,989
357

A Bash shell function is a set of one or more commands that can be called repeatedly from within a Bash script. Functions can be defined using the function keyword or by simply defining the function name followed by the list of commands enclosed in curly braces.

An array in Bash is a collection of values that are indexed by a number. Arrays can be declared using the declare keyword or by simply defining the array name followed by a list of values enclosed in parentheses.


Watch video Functions and Arrays in Linux | bash shell scripting online without registration, duration hours minute second in high quality. This video was added by user nikkiinit 07 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,98 once and liked it 35 people.