Shell-Programmierung/tab_beisp_while_for.tex

18 lines
575 B
TeX
Raw Normal View History

2001-07-02 14:52:18 +02: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}