494fd4f78798ef29705198f0a0530a67d6e41df4
[linuxnijmegen-bash.git] / part1 / syntax.tex
1 % 1. Syntax, quoting, manpage, unix philosophy, ampersand/fork.
2 % een frame moet fragile als het listings bevat
3 \begin{frame}[fragile]
4 \frametitle{Syntax}
5 \begin{enumerate}
6 \item Long option
7 \item Short options
8 \item Arguments
9 \item ...
10 \end{enumerate}
11 \begin{lstlisting}[style=bashregel]
12 ls -a -l -h --color=auto /home/frobnicator/directory
13 \end{lstlisting}
14 \begin{lstlisting}[style=bashregel]
15 ls --all -lh
16 \end{lstlisting}
17 \end{frame}
18
19 \begin{frame}[fragile]
20 \frametitle{Speciale karakters}
21 \begin{lstlisting}[style=bashregel]
22 mkdir /home/frobnicator/map
23 \end{lstlisting}
24 \begin{lstlisting}[style=bashregel]
25 mkdir "/home/frobnicator/mooie map"
26 mkdir /home/frobnicator/mooie\ map
27 mkdir '/home/frobnicator/mooie map'
28 \end{lstlisting}
29 \begin{lstlisting}[style=bashregel]
30 mkdir /home/frobnicator/mooiste\ map\ '!'
31 mkdir '/home/frobnicator/mooiste map!'
32 \end{lstlisting}
33 \end{frame}
34
35 \begin{frame}[fragile]
36 \frametitle{Radeloos? Manpage}
37 \begin{lstlisting}[style=bashregel]
38 LS(1) User Commands LS(1)
39
40 NAME
41 ls - list directory contents
42
43 SYNOPSIS
44 ls [OPTION]... [FILE]...
45
46 DESCRIPTION
47 List information about the FILEs (the current directory by default). Sort entries alphabeti-
48 cally if none of -cftuvSUX nor --sort is specified.
49
50 Mandatory arguments to long options are mandatory for short options too.
51
52 -a, --all
53 do not ignore entries starting with .
54
55 -A, --almost-all
56 do not list implied . and ..
57
58 --author
59 with -l, print the author of each file
60
61 -b, --escape
62 print C-style escapes for nongraphic characters
63 \end{lstlisting}
64 \end{frame}