Posts Tagged "bash"

How to use functions in a BASH shell script

Posted on Dec 1, 2016

BASH can deal with simple functions, and they are defined like this: # this defines the function function testing {     echo "Hi there!" } # this calls our function testing As far as I know, BASH...

Learn More

How to use variables in a BASH shell script

Posted on Nov 30, 2016

Here’s how to use simple variables in BASH shell scripts. It appears there are no data types, and everything’s a string (correct me if I’m wrong). We can define a variable by first setting...

Learn More