#bashfunctions
Explore tagged Tumblr posts
linuxtechlab ยท 4 years ago
Link
Learn to create functions for our Bash / shell scripts. Learning how to create a function is an important skill required for BASH scripting.
When we are writing our scripts, we might see ourselves using a section of the script over and over again like using a loop that is checking a condition many times in a script. So rather than writing a section of the script over & over again, we will create that section of script as a Functions aka Bash Functions also.
Functions are like a mini-script inside the scripts. We will create a function with a name & whenever that function is required, we will just type the name of the function rather than typing the whole section of a script again & again.
0 notes