Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Picasoft
APIs
Init
Sh
Commits
164049f2
Unverified
Commit
164049f2
authored
Jan 22, 2019
by
Rémy Huet
💻
Browse files
Passe de correction
parent
901bf33f
Pipeline
#33862
passed with stages
in 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/tex/conditions.tex
View file @
164049f2
...
...
@@ -152,9 +152,9 @@
\hline
\textbf
{
Test et syntaxe
}
&
\textbf
{
Explications
}
\\
\hline\hline
\verb
+
$
"chaine1" ==
$
"chaine2"
+
&
Test d'égalité entre
\verb
+
$chaine1
+
et
\verb
+
$chaine2
+
\\
\verb
+
"
$
chaine1" == "
$
chaine2"
+
&
Test d'égalité entre
\verb
+
$chaine1
+
et
\verb
+
$chaine2
+
\\
\hline
\verb
+
$
"chaine1" !=
$
"chaine2"
+
&
Test si
\verb
+
$chaine1
+
et
\verb
+
$chaine2
+
sont différents
\\
\verb
+
"
$
chaine1" != "
$
chaine2"
+
&
Test si
\verb
+
$chaine1
+
et
\verb
+
$chaine2
+
sont différents
\\
\hline
\verb
+
-z $chaine
+
&
Teste si la la variable
\verb
+
$chaine
+
est vide
\\
\hline
...
...
src/tex/variables.tex
View file @
164049f2
...
...
@@ -101,14 +101,14 @@ echo `$cmd`
\begin
{
Verbatim
}
$
cmd
ls
script.sh
helloWorld.sh
script.sh
\end{Verbatim}
\end{beamercolorbox}
\begin{block}
{
Explications
}
\begin{description}
\item
[\bf
Première l
igne]
L'utilisation de simple quotes n'interprète pas
\verb
+
$cmd
+
comme une variable
\item
[\bf
Deuxième l
igne]
L'utilisation de double quotes interprète
\verb
+
$cmd
+
comme une variable et affiche son contenu
\item
[\bf
Troisième l
igne]
L'utilisation de backquotes interprète
\verb
+
$cmd
+
comme une commande et execute donc le
\texttt
{
ls
}
\item
[\bf
L
igne
1
]
L'utilisation de simple quotes n'interprète pas
\verb
+
$cmd
+
comme une variable
\item
[\bf
L
igne
2
]
L'utilisation de double quotes interprète
\verb
+
$cmd
+
comme une variable et affiche son contenu
\item
[\bf
L
igne
3
]
L'utilisation de backquotes interprète
\verb
+
$cmd
+
comme une commande et execute donc le
\texttt
{
ls
}
\end{description}
\end{block}
\end{frame}
...
...
@@ -152,7 +152,7 @@ echo $c
\begin{beamercolorbox}
[rounded=true,shadow=true]
{
terminal
}
\begin{Verbatim}
remy@hp-remy:~/scripts
$
.
/
script.sh
\Pause
8
7
\end
{
Verbatim
}
\end
{
beamercolorbox
}
\end
{
frame
}
...
...
@@ -259,12 +259,12 @@ Le premier paramètre est \Pause
#!/bin/bash
mon
_
tableau=(toto titi)
echo
${
mon
_
tableau
[
0
]
}
${
mon
_
tableau[1]
}
echo
${
mon
_
tableau
[*]
}
echo
$
\
{
mon
_
tableau
[
0
]
\
}
$
\
{
mon
_
tableau[1]
\
}
echo
$
\
{
mon
_
tableau
[*]
\
}
mon
_
tableau
[
mon
_
index
]=
tata
echo
${
mon
_
tableau[mon
_
index]
}
echo
$
\
{
mon
_
tableau[mon
_
index]
\
}
mon
_
tableau[0]=tutu
echo
${
mon
_
tableau
[*]
}
echo
$
\
{
mon
_
tableau
[*]
\
}
\end
{
Verbatim
}
\end
{
beamercolorbox
}
On exécute, et on obtient:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment