diff options
| author | Manuel Traut <manut@linutronix.de> | 2011-01-27 00:52:19 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2011-01-27 00:52:19 +0100 |
| commit | 7e5883bbd6e699d1fcee0814c5a172d6348bd63c (patch) | |
| tree | 3df8a00a9727ff0e2c020d2e07304fdb00c83e3d /linux-basics/sh-programming/handout_sh-programming_de.tex | |
| parent | 6fb0950420424ff27f6aa89429a763409b088ed6 (diff) | |
convert the rest to the new buildsys format
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'linux-basics/sh-programming/handout_sh-programming_de.tex')
| -rw-r--r-- | linux-basics/sh-programming/handout_sh-programming_de.tex | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/linux-basics/sh-programming/handout_sh-programming_de.tex b/linux-basics/sh-programming/handout_sh-programming_de.tex index e9c84b4..fd419e7 100644 --- a/linux-basics/sh-programming/handout_sh-programming_de.tex +++ b/linux-basics/sh-programming/handout_sh-programming_de.tex @@ -1,15 +1,8 @@ -\documentclass{lxarticle} -\usepackage{german} -\usepackage[utf8]{inputenc} -\usepackage{lxheaders} -\usepackage{lxextras} +\input{confighandout} -\begin{document} - -\section*{Einführung in die Shell-Programmierung} - -\subsection*{Aufbau von Shell-Skripten} +\subsection{Shell-Programmierung} +\subsubsection{Aufbau von Shell-Skripten} \begin{itemize} \item Syntax: \cmd{\#!/ein/interpreter} \item Beliebiges Programm als Interpreter möglich @@ -18,13 +11,12 @@ \end{itemize} Das übliche \cmd{Hello World} sieht als Shell-Skript etwa so aus: - \begin{lstlisting} #!/bin/sh echo Hello World \end{lstlisting} -\subsection*{Variablen und Parameter} +\subsubsection{Variablen und Parameter} \begin{lstlisting} #!/bin/sh @@ -41,7 +33,7 @@ Variablen können einfach in der Form \cmd{Name=Wert} geschrieben werden. Sie haben in Shell-Skripten keinen Typ und werden bei der ersten Verwendung automatisch angelegt. -\subsection*{Ausgabe-Umleitung} +\subsubsection{Ausgabe-Umleitung} \begin{lstlisting} #!/bin/sh @@ -57,7 +49,7 @@ exit 0 \end{lstlisting} -\subsection*{Bedingte Verzweigungen} +\subsubsection{Bedingte Verzweigungen} Allgemeine Form: @@ -166,7 +158,7 @@ while [ bedingung ] ; do ... ; done # bedingung wie bei if \end{lstlisting} -\subsection*{Funktionen} +\subsubsection{Funktionen} \begin{lstlisting} #!/bin/sh @@ -180,7 +172,7 @@ error_log() { error_log "Datei nicht gefunden." \end{lstlisting} -\subsection*{Einbinden anderer Skripte} +\subsubsection{Einbinden anderer Skripte} \begin{lstlisting} #!/bin/sh @@ -193,7 +185,7 @@ my_other_script& \end{lstlisting} -\subsection*{Zugriff auf Dateien} +\subsubsection{Zugriff auf Dateien} \begin{lstlisting} #!/bin/sh @@ -210,4 +202,4 @@ done < dateiliste.txt \end{lstlisting} -\end{document} +\input{tailhandout} |
