Welcome

Apologia, decisions, & consequences

Navigation

Blogroll

Tags

Functions in Bash

January 21st, 2024 by Mr. Lynx Economicus   URI: https://memorymatrix.cloud/archives/41.html

This is the code for a function in Bash script.

 #!/bin/bash
 # Define a function
 greet() {
 echo "Hello, $1"
 }
 # Call the function with "World" as the argument
 greet "World"

Posted in Computing Notes | Tagged: ,