Difference between revisions of "Function"

From wikieduonline
Jump to navigation Jump to search
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
 +
== Bash ==
 +
* [[Bash]]: <code>[[function]] { }</code>
 +
 +
log() {
 +
echo "[$([[date]] --rfc-3339=seconds)]: $*"
 +
}
  
  
* [[Bash]]: <code>[[function]] { }</code>
+
error() {
 +
  echo "[$([[date]] --rfc-3339=seconds)]: $*"
 +
  exit 1
 +
}
  
* <code>[[def]]</code> python
+
== Python ==
 +
* <code>[[def]]</code> [[python]]
  
 
== See also ==
 
== See also ==
 
* {{Bash}}
 
* {{Bash}}
 +
* {{Programming}}
  
 
[[Category:Programming]]
 
[[Category:Programming]]

Revision as of 12:52, 17 February 2021

Advertising: