Shell-Programmierung/tab_beisp_while_for.tex

19 lines
582 B
TeX
Raw Normal View History

2003-04-11 15:05:25 +00:00
% $Id$
2001-07-02 12:52:18 +00:00
\begin{longtable}{|X l|}
% KILLED & LINE!!!! \kill
\hline
\endfirsthead
\endhead
\endfoot
\hline
\endlastfoot
\multicolumn{2}{|X|}{\textsl{Ausgabe der Zahlen von 1 bis 100:}} \\
\multicolumn{2}{|X|}{\texttt{i=1}\index{!==\texttt{!=}}} \\
\multicolumn{2}{|X|}{\texttt{while [ \$i -le 100 ]}} \\
\multicolumn{2}{|X|}{\texttt{do}} \\
\multicolumn{2}{|X|}{\texttt{~echo \$i}} \\
\multicolumn{2}{|X|}{\texttt{~i=`expr \$i + 1`}\index{expr=\texttt{expr}}\index{+=\texttt{+}}\index{!==\texttt{!=}}\index{Backticks}} \\
\multicolumn{2}{|X|}{\texttt{done}} \\
\end{longtable}