bash

Nützlichkeiten

Rechnen mit der bash

$((1 + 1))

Preset-Variablen in der bash

  • ${?}: Returncode des letzten ausfgeführten Programms

Template für bash-scripts

template.bash
#!/bin/bash
#Usage:         scriptname and arguments/options
#Purpose:       short description
#Responsible:   name of author <email>
#Licence:       as far as possible GPL v2
 
#user-definable vars
 
#
#do not mess behind this line
#
 
#preset vars
 
#functions
 
#main part
 
#clean up
it/oss/bash.txt · Last modified: 2010-02-16 13:29 by strols
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0