Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

format of functions in bash shell script

#!/bin/bash

my_function () {
  local func_result="some result"
  echo "$func_result"
}

func_result="$(my_function)"
echo $func_result
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #format #functions #bash #shell #script
ADD COMMENT
Topic
Name
5+1 =