summaryrefslogtreecommitdiff
path: root/ult/ult.tex
diff options
context:
space:
mode:
Diffstat (limited to 'ult/ult.tex')
-rw-r--r--ult/ult.tex15
1 files changed, 15 insertions, 0 deletions
diff --git a/ult/ult.tex b/ult/ult.tex
index 613409f..a94dc14 100644
--- a/ult/ult.tex
+++ b/ult/ult.tex
@@ -1013,6 +1013,21 @@
\end{frame}
\begin{frame}[fragile]
+ \frametitle{Variables \& Comments}
+ \begin{lstlisting}
+ $ name=FOSSEE
+ $ count=`wc -l wonderland.txt`
+ $ echo $count # Shows the value of count
+ \end{lstlisting} % $
+ \begin{itemize}
+ \item It is possible to create variables in shell scripts
+ \item Variables can be assigned with the output of commands
+ \item \alert{NOTE:} There is no space around the \texttt{=} sign
+ \item All text following the \texttt{\#} is considered a comment
+ \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
\frametitle{\texttt{echo}}
\begin{itemize}
\item \texttt{echo} command prints out messages