This is an old revision of the document!


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

#!/bin/sh
#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.1154077420.txt · Last modified: 2010-02-16 13:29 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0