summaryrefslogtreecommitdiff
path: root/ult
diff options
context:
space:
mode:
authorPuneeth Chaganti2011-06-10 15:19:03 +0530
committerPuneeth Chaganti2011-06-10 15:19:03 +0530
commitd305a9b065ad24fdae0da47a6d8a7140cd8e0a43 (patch)
treebbc213742085301ab4f218d1116b753d0562dfb1 /ult
parent9d5a15e6197b832c36dba14d4adb9f21b7c23200 (diff)
downloadsees-d305a9b065ad24fdae0da47a6d8a7140cd8e0a43.tar.gz
sees-d305a9b065ad24fdae0da47a6d8a7140cd8e0a43.tar.bz2
sees-d305a9b065ad24fdae0da47a6d8a7140cd8e0a43.zip
ult: Fix bug in slides.
s/marks.txt/marks1.txt at some instances.
Diffstat (limited to 'ult')
-rw-r--r--ult/ult.tex26
1 files changed, 13 insertions, 13 deletions
diff --git a/ult/ult.tex b/ult/ult.tex
index 62117eb..e1feb3d 100644
--- a/ult/ult.tex
+++ b/ult/ult.tex
@@ -679,7 +679,7 @@
\begin{frame}[fragile]
\frametitle{Redirection and Piping}
\begin{lstlisting}
- $ cut -d " " -f 2- marks.txt \
+ $ cut -d " " -f 2- marks1.txt \
> /tmp/m_tmp.txt
$ paste -d " " students.txt m_tmp.txt
\end{lstlisting} % $
@@ -687,7 +687,7 @@
or
\begin{lstlisting}
- $ cut -d " " -f 2- marks.txt \
+ $ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt -
\end{lstlisting} % $
@@ -745,10 +745,10 @@
\item Error message is redirected, in the second case
\end{itemize}
\begin{lstlisting}
- $ cut -d " " -c 2- marks.txt \
+ $ cut -d " " -c 2- marks1.txt \
> /tmp/m_tmp.txt
- $ cut -d " " -f 2- marks.txt 1> \
+ $ cut -d " " -f 2- marks1.txt 1> \
/tmp/m_tmp.txt 2> /tmp/m_err.txt
\end{lstlisting} % $
\begin{itemize}
@@ -763,7 +763,7 @@
\begin{frame}[fragile]
\frametitle{Piping}
\begin{lstlisting}
- $ cut -d " " -f 2- marks.txt \
+ $ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt -
\end{lstlisting} % $
\begin{itemize}
@@ -852,7 +852,7 @@
\item Command below prints student marks, sorted by name
\end{itemize}
\begin{lstlisting}
- $ cut -d " " -f 2- marks.txt \
+ $ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt - \
| sort
\end{lstlisting} % $
@@ -868,7 +868,7 @@
\item The command below sorts based on marks in first subject
\end{itemize}
\begin{lstlisting}
- $ cut -d " " -f 2- marks.txt \
+ $ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt -\
| sort -t " " -k 2 -rn
\end{lstlisting} % $
@@ -887,7 +887,7 @@
\item Command below searches \& shows the marks of Anne alone
\end{itemize}
\begin{lstlisting}
- $ cut -d " " -f 2- marks.txt \
+ $ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt -
| grep Anne
\end{lstlisting} % $
@@ -902,7 +902,7 @@
\item \texttt{-i} for case-insensitive searches
\end{itemize}
\begin{lstlisting}
- $ cut -d " " -f 2- marks.txt \
+ $ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt -
| grep -i Anne
\end{lstlisting} % $
@@ -911,7 +911,7 @@
\item To see everyone's marks except Anne's
\end{itemize}
\begin{lstlisting}
- $ cut -d " " -f 2- marks.txt \
+ $ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt -
| grep -iv Anne
\end{lstlisting} % $
@@ -989,7 +989,7 @@
\begin{lstlisting}
#!/bin/bash
mkdir ~/marks
- cut -d " " -f 2- marks.txt \
+ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt - \
| sort > ~/marks/results.txt
\end{lstlisting} % $
@@ -1020,7 +1020,7 @@
\begin{lstlisting}
#!/bin/bash
mkdir ~/marks
- cut -d " " -f 2- marks.txt \
+ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt - \
| sort > ~/marks/results.txt
echo "Results generated."
@@ -1036,7 +1036,7 @@
\begin{lstlisting}
#!/bin/bash
mkdir ~/marks
- cut -d " " -f 2- marks.txt \
+ cut -d " " -f 2- marks1.txt \
| paste -d " " students.txt - \
| sort > ~/marks/$1
echo "Results generated."