bellos/bellos_scripts/functions.bellos
2024-09-24 18:39:42 -04:00

18 lines
240 B
Plaintext

#!/usr/bin/env bellos
# File: functions.bellos
# Defining and using functions
function greet() {
echo "Hello, $1!"
}
function add() {
echo $(($1 + $2))
}
# Calling functions
greet "User"
result=$(add 3 4)
echo "3 + 4 = $result"