Difference between revisions of "Function"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
  
== Bash ==
+
== [[Bash shell functions]] ==
* [[Bash]]:
 
 
 
[[function]] { }
 
 
 
log() {
 
echo "[$([[date]] --rfc-3339=seconds)]: $*"
 
}
 
 
 
error() {
 
  echo "[$([[date]] --rfc-3339=seconds)]: $*"
 
  exit 1
 
}
 
 
 
my_funtion () {
 
        echo "Executed my_function with $1 parameter"
 
}
 
  
 
== Python ==
 
== Python ==

Revision as of 17:09, 24 June 2022

Advertising: