Functions in Bash


This is the code for a function in Bash script.
#!/bin/bash # Define a functiongreet() { echo "Hello, $1" } # Call the function with "World" as the argument greet "World"
Posted in Computing Notes | Tagged: Bash, Linux
Apologia, decisions, & consequences
This is the code for a function in Bash script.
#!/bin/bash # Define a functiongreet() { echo "Hello, $1" } # Call the function with "World" as the argument greet "World"
Posted in Computing Notes | Tagged: Bash, Linux