From fd66f4a81545041c557a2b9d311be894c496fcc7 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Tue, 9 Sep 2014 15:09:35 +0200 Subject: [PATCH 1/1] Alles klaar, nog niet netjes helaas --- part1/{syntax.tex => 1syntax.tex} | 10 +++-- part1/{exit.tex => 2exit.tex} | 18 ++++++++- part1/3basis.tex | 30 ++++++++++++++ part1/4stream.tex | 9 +++++ part1/5script.tex | 67 +++++++++++++++++++++++++++++++ part1/basis.tex | 2 - part1/part1.tex | 14 +++---- part1/script.tex | 9 ----- part1/stream.tex | 0 9 files changed, 136 insertions(+), 23 deletions(-) rename part1/{syntax.tex => 1syntax.tex} (95%) rename part1/{exit.tex => 2exit.tex} (78%) create mode 100644 part1/3basis.tex create mode 100644 part1/4stream.tex create mode 100644 part1/5script.tex delete mode 100644 part1/basis.tex delete mode 100644 part1/script.tex delete mode 100644 part1/stream.tex diff --git a/part1/syntax.tex b/part1/1syntax.tex similarity index 95% rename from part1/syntax.tex rename to part1/1syntax.tex index d73537d..529a11b 100644 --- a/part1/syntax.tex +++ b/part1/1syntax.tex @@ -86,7 +86,11 @@ DESCRIPTION \subsection{Forken} \begin{frame} \frametitle{Forken} - \begin{block} - Achtergrond - \end{block} + Achtergrond + \begin{enumerate} + \item Crtl-z + \item fg + \item bg + \item jobs + \end{enumerate} \end{frame} diff --git a/part1/exit.tex b/part1/2exit.tex similarity index 78% rename from part1/exit.tex rename to part1/2exit.tex index 631c801..4dff013 100644 --- a/part1/exit.tex +++ b/part1/2exit.tex @@ -23,11 +23,25 @@ \end{frame} \subsection{Introductie variabelen, speciale variabelen} -\begin{frame} +\begin{frame}[fragile] \frametitle{Speciale variabelen} \begin{block}{Intro variabelen} - + \begin{lstlisting}[style=bashregel] + NAAM=frob + NAAM="frob nicator" + echo $frob + echo ${frob} + echo "$frob" + \end{lstlisting} \end{block} \begin{block}{Speciale variabelen} + \begin{lstlisting}[style=bashregel] + $? + $! + $@ + $1 + $2 + ... + \end{lstlisting} \end{block} \end{frame} diff --git a/part1/3basis.tex b/part1/3basis.tex new file mode 100644 index 0000000..47a006a --- /dev/null +++ b/part1/3basis.tex @@ -0,0 +1,30 @@ +% 3. Basic commands: echo, cat, cp, date, df, du, file, file, help, +% history(!!, !a), kill, ln, ls, man, mkdir, mv, pwd, rm, sudo, which, >>, > + +\subsection{Basis commando's} +\begin{frame} + \frametitle{Print en navigeer commando's} + \begin{enumerate} + \item echo, cat + \item cd, ls + \item pwd + \end{enumerate} +\end{frame} + +\begin{frame} + \frametitle{Bestands en map operaties} + \begin{enumerate} + \item cp, mv, rm, ln + \item mkdir rmdir + \end{enumerate} +\end{frame} + +\begin{frame} + \frametitle{Geavanceerdere operaties} + \begin{enumerate} + \item kill, sudo, which + \item date, df, du, file + \item man, help + \item history, !!, !frobby + \end{enumerate} +\end{frame} diff --git a/part1/4stream.tex b/part1/4stream.tex new file mode 100644 index 0000000..c40ac42 --- /dev/null +++ b/part1/4stream.tex @@ -0,0 +1,9 @@ +\begin{frame} + \frametitle{Volgens de filosofie} + \begin{enumerate} + \item grep + \item paste, column, cut, head, tail + \item rev, shuf, sort, tail, tr + \item uniq wc + \end{enumerate} +\end{frame} diff --git a/part1/5script.tex b/part1/5script.tex new file mode 100644 index 0000000..b4b3d86 --- /dev/null +++ b/part1/5script.tex @@ -0,0 +1,67 @@ +% dirname for while case if read shebang function variabelen test +\begin{frame}[fragile] + \frametitle{Combineren} + Verticale streep $|$\\ + \begin{lstlisting}[style=bashregel] + history | grep "froobz" + \end{lstlisting} + \begin{lstlisting}[style=bashregel] + naam=\$(echo "aoue Mijn naam is: \$(whoami)" | cut -c 6-) + \end{lstlisting} +\end{frame} + +\begin{frame} + \frametitle{Omgeving} + Bevat alle variabelen + \begin{enumerate} + \item \$(HOME) + \item \$(MAIL) + \item \$(PWD) + \item ... + \item env + \end{enumerate} +\end{frame} + +\begin{frame} + \frametitle{Hulpmiddelen} + \begin{enumerate} + \item dirname, basename + \item function + \item test + \item read + \end{enumerate} +\end{frame} + +\begin{frame} + \frametitle{Structuur constructies} + \begin{enumerate} + \item for, done + \item while, done + \item case, esac + \item if, then, else, fi + \end{enumerate} +\end{frame} + +\begin{frame} + \frametitle{Contest} + \begin{center} + \textit{Give a man a fish and he'll eat for a day, teach him how to fish + and he'll never be hungry again} + \end{center} +\end{frame} + +\begin{frame} + \frametitle{Status lijn programma} + Handige command line programma's:\\ + \begin{enumerate} + \item{Temperatuur} sensors + \item{Batterij status} acpi + \item{Harde schijf} df + \item{Netwerk status} ifconfig + \item{Datum/tijd} date + \item{Volume} amixer + \item{Muziek?} mpc?, dbus? + \item{Email?} mutt?, thunderbird?, procmail? + \item{Configurate file} cat, grep + \end{enumerate} +\end{frame} diff --git a/part1/basis.tex b/part1/basis.tex deleted file mode 100644 index e7062fc..0000000 --- a/part1/basis.tex +++ /dev/null @@ -1,2 +0,0 @@ -% 3. Basic commands: echo, cat, cp, date, df, du, file, file, help, -% history(!!, !a), kill, ln, ls, man, mkdir, mv, pwd, rm, sudo, which, >>, > diff --git a/part1/part1.tex b/part1/part1.tex index 992b981..8948d7b 100644 --- a/part1/part1.tex +++ b/part1/part1.tex @@ -1,4 +1,4 @@ -\documentclass{beamer} +\documentclass[handout]{beamer} % Voor afbeeldingen, zet ze in ./img en dan kan je ze laden met filename \usepackage{graphicx} @@ -51,18 +51,18 @@ \end{frame} \section{Syntax} -\input{syntax.tex} +\input{1syntax.tex} \section{Exit codes} -\input{exit.tex} +\input{2exit.tex} \section{Basis commando's} -\input{basis.tex} +\input{3basis.tex} \section{Pipes en streams} -\input{stream.tex} +\input{4stream.tex} -\section{Scripten} -\input{script.tex} +\section{Combineren en scripten} +\input{5script.tex} \end{document} diff --git a/part1/script.tex b/part1/script.tex deleted file mode 100644 index 8959a0b..0000000 --- a/part1/script.tex +++ /dev/null @@ -1,9 +0,0 @@ -\begin{frame}[fragile] - \begin{lstlisting}[style=bashscript] -foo() { - echo "bar" -} - -barbaz=$(foo | sed 's/r/z/g') - \end{lstlisting} -\end{frame} diff --git a/part1/stream.tex b/part1/stream.tex deleted file mode 100644 index e69de29..0000000 -- 2.20.1