Skip to content

Commit cfa630e

Browse files
Started translation in French. (bobbyiliev#45)
* Begin French translation. * Translate 001-introduction-to-bash.md to French. * Translate 002-bash-structure.md to French. * Translate 003-bash-hello-world.md to French. * Translate theme-dark.html to French. * Import cover (not translated). * Translate theme-light.html to French. * Translate 004-bash-variables.md in French. * Translate 100-bash-wrap-up.md to French. * Translate 006-bash-comments.md to French.
1 parent 72a2504 commit cfa630e

11 files changed

+578
-0
lines changed

ebook/fr/assets/cover.jpg

118 KB
Loading

ebook/fr/assets/cover.jpg-bak

14.5 KB
Binary file not shown.

ebook/fr/assets/theme-dark.html

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
<header>
2+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/sunburst.min.css">
3+
<style>
4+
5+
body {
6+
font-family: calibri;
7+
font-size: 18px;
8+
line-height: 1.5;
9+
background-color: #011627;
10+
color: #c1d4ea;
11+
}
12+
13+
h1, h2 {
14+
font-family: times;
15+
color: #fff;
16+
}
17+
18+
h3 {
19+
font-family: calibri;
20+
color: #fff;
21+
font-weight: bold;
22+
}
23+
24+
h1 {
25+
font-size: 38px;
26+
padding-top: 0;
27+
padding-bottom: 70px;
28+
}
29+
30+
h2 {
31+
text-align: left;
32+
font-size: 23px;
33+
padding-top: 0;
34+
padding-bottom: 30px;
35+
}
36+
37+
h3 {
38+
text-align: left;
39+
font-size: 20px;
40+
padding-top: 20px;
41+
padding-bottom: 0;
42+
}
43+
44+
p, ul, ol {
45+
margin-bottom: 20px;
46+
}
47+
48+
pre {
49+
line-height: 20px;
50+
page-break-inside: avoid;
51+
border-left: solid 5px #EABC65;
52+
padding-top: 15px;
53+
padding-bottom: 15px;
54+
padding-left: 20px;
55+
margin-bottom: 30px;
56+
}
57+
58+
a {
59+
color: #abe9ef;
60+
}
61+
62+
pre code {
63+
background: none;
64+
font-size: 15px;
65+
color: #abe9ef;
66+
}
67+
68+
code {
69+
font-size: 16px;
70+
color: #EABC65;
71+
}
72+
73+
.mpdf_toc {
74+
font-family: calibri;
75+
color: #c1d4ea;
76+
}
77+
78+
div.mpdf_toc_level_0 {
79+
padding-top: 30px;
80+
line-height: 30px;
81+
}
82+
83+
div.mpdf_toc_level_1 {
84+
line-height: 30px;
85+
}
86+
87+
div.mpdf_toc_level_2 {
88+
line-height: 30px;
89+
}
90+
91+
span.mpdf_toc_t_level_0, span.mpdf_toc_p_level_0 {
92+
color: #c1d4ea;
93+
font-family: calibri;
94+
font-weight: bold;
95+
font-style: normal;
96+
}
97+
98+
span.mpdf_toc_t_level_1, span.mpdf_toc_p_level_1 {
99+
color: #c1d4ea;
100+
font-family: calibri;
101+
font-weight: normal;
102+
font-style: normal;
103+
}
104+
105+
span.mpdf_toc_t_level_2, span.mpdf_toc_p_level_2 {
106+
color: #c1d4ea;
107+
font-family: calibri;
108+
font-weight: normal;
109+
font-style: normal;
110+
}
111+
112+
#toc-title {
113+
font-weight: bold;
114+
font-size: 45px;
115+
padding-top: 0;
116+
padding-bottom: 10px;
117+
text-align: center;
118+
}
119+
120+
blockquote {
121+
margin-top: 0;
122+
margin-right: 0;
123+
margin-bottom: 30px;
124+
margin-left: 0;
125+
page-break-inside: avoid;
126+
}
127+
128+
blockquote p {
129+
margin-top: 0;
130+
margin-bottom: 0;
131+
}
132+
133+
blockquote.quote {
134+
padding-top: 20px;
135+
padding-bottom: 20px;
136+
padding-left: 20px;
137+
padding-right: 20px;
138+
font-style: italic;
139+
}
140+
141+
blockquote.notice {
142+
border-left: solid 5px #5b87dd;
143+
padding-top: 20px;
144+
padding-bottom: 20px;
145+
padding-left: 20px;
146+
padding-right: 20px;
147+
}
148+
149+
blockquote.notice strong {
150+
color: #5b87dd;
151+
}
152+
153+
blockquote.warning {
154+
border-left: solid 5px #dd787d;
155+
padding-top: 20px;
156+
padding-bottom: 20px;
157+
padding-left: 20px;
158+
padding-right: 20px;
159+
}
160+
161+
blockquote.warning strong {
162+
color: #dd787d;
163+
}
164+
</style>
165+
166+
</header>
167+
168+
<tocpagebreak links="on"
169+
toc-suppress="on"
170+
toc-preHTML="&lt;h1 id=&quot;toc-title&quot;&gt;Table des Matières&lt;/h1&gt;"
171+
toc-bookmarkText="Sommaire">

ebook/fr/assets/theme-light.html

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
<header>
2+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/github-gist.min.css">
3+
<style>
4+
5+
body {
6+
font-family: calibri;
7+
font-size: 18px;
8+
line-height: 1.5;
9+
color: #252525;
10+
}
11+
12+
h1, h2 {
13+
font-family: times;
14+
}
15+
16+
h3 {
17+
font-family: calibri;
18+
font-weight: bold;
19+
}
20+
21+
h1 {
22+
font-size: 38px;
23+
padding-top: 0;
24+
padding-bottom: 70px;
25+
}
26+
27+
h2 {
28+
text-align: left;
29+
font-size: 23px;
30+
padding-top: 0;
31+
padding-bottom: 30px;
32+
}
33+
34+
h3 {
35+
text-align: left;
36+
font-size: 20px;
37+
padding-top: 20px;
38+
padding-bottom: 0;
39+
}
40+
41+
p, ul, ol {
42+
margin-bottom: 20px;
43+
}
44+
45+
pre {
46+
line-height: 20px;
47+
page-break-inside: avoid;
48+
border-left: solid 5px #c8c8c8;
49+
background-color: #f9f9fb;
50+
padding-top: 15px;
51+
padding-bottom: 15px;
52+
padding-left: 20px;
53+
margin-bottom: 30px;
54+
}
55+
56+
a {
57+
color: #1a1c3e;
58+
}
59+
60+
pre code {
61+
background: none;
62+
font-size: 15px;
63+
color: #2d2d2d;
64+
}
65+
66+
code {
67+
font-size: 16px;
68+
color: #A5215D;
69+
}
70+
71+
.mpdf_toc {
72+
font-family: calibri;
73+
color: #252525;
74+
}
75+
76+
div.mpdf_toc_level_0 {
77+
padding-top: 30px;
78+
line-height: 30px;
79+
}
80+
81+
div.mpdf_toc_level_1 {
82+
line-height: 30px;
83+
}
84+
85+
div.mpdf_toc_level_2 {
86+
line-height: 30px;
87+
}
88+
89+
span.mpdf_toc_t_level_0, span.mpdf_toc_p_level_0 {
90+
color: #252525;
91+
font-family: calibri;
92+
font-weight: bold;
93+
font-style: normal;
94+
}
95+
96+
span.mpdf_toc_t_level_1, span.mpdf_toc_p_level_1 {
97+
color: #252525;
98+
font-family: calibri;
99+
font-weight: normal;
100+
font-style: normal;
101+
}
102+
103+
span.mpdf_toc_t_level_2, span.mpdf_toc_p_level_2 {
104+
color: #252525;
105+
font-family: calibri;
106+
font-weight: normal;
107+
font-style: normal;
108+
}
109+
110+
#toc-title {
111+
font-weight: bold;
112+
font-size: 45px;
113+
padding-top: 0;
114+
padding-bottom: 10px;
115+
text-align: center;
116+
}
117+
118+
blockquote {
119+
margin-top: 0;
120+
margin-right: 0;
121+
margin-bottom: 30px;
122+
margin-left: 0;
123+
page-break-inside: avoid;
124+
}
125+
126+
blockquote p {
127+
margin-top: 0;
128+
margin-bottom: 0;
129+
}
130+
131+
blockquote.quote {
132+
padding-top: 20px;
133+
padding-bottom: 20px;
134+
padding-left: 20px;
135+
padding-right: 20px;
136+
font-style: italic;
137+
}
138+
139+
blockquote.notice {
140+
background-color: #f0f5ff;
141+
border-left: solid 5px #5b87dd;
142+
padding-top: 20px;
143+
padding-bottom: 20px;
144+
padding-left: 20px;
145+
padding-right: 20px;
146+
}
147+
148+
blockquote.notice strong {
149+
color: #255ac0;
150+
}
151+
152+
blockquote.warning {
153+
background-color: #ffeced;
154+
border-left: solid 5px #dd787d;
155+
padding-top: 20px;
156+
padding-bottom: 20px;
157+
padding-left: 20px;
158+
padding-right: 20px;
159+
}
160+
161+
blockquote.warning strong {
162+
color: #c0262b;
163+
}
164+
</style>
165+
166+
</header>
167+
168+
<tocpagebreak links="on"
169+
toc-suppress="on"
170+
toc-preHTML="&lt;h1 id=&quot;toc-title&quot;&gt;Table des Matières&lt;/h1&gt;"
171+
toc-bookmarkText="Sommaire">
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Introduction au script Bash
2+
3+
Bienvenue dans ce guide des fondamentaux de Bash! Dans ce **cours accéléré sur bash**, vous apprendrez les **bases de Bash** qui vous permettront de créer vos propres scripts et d'automatiser vos tâches journalières.
4+
5+
Bash est un *shell* Unix et un langage de commande. Il est utilisable avec de nombreux systèmes d'exploitation dont la plupart des systèmes Linux où il est également l'interpréteur de commandes par défaut.
6+
7+
Bash veut dire *Bourne-Again SHell* (Shell réincarné). Comme la plupart des shells, vous pouvez vous servir de Bash de manière interactive directement depuis votre terminal. Vous pouvez également utiliser Bash comme n'importe quel autre langage de programmation pour écrire des scripts. Ce livre vous aidera à apprendre les fondamentaux de l'écriture de scripts Bash, notamment les Variables Bash, les Saisies par l'Utilisateur, les Commentaires, les Arguments, les Tableaux, les Expressions Conditionnelles, les Conditions, les Boucles, les Fonctions, le Débogage et les Tests.
8+
9+
Pour écrire des scripts Bash, vous avez juste besoin d'un terminal UNIX et d'un éditeur de texte comme Sublime Text, VS Code, ou un éditeur intégré au terminal comme vim ou nano.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# La Structure Bash
2+
3+
Commençons par créer un nouveau fichier avec l'extension `.sh`. Par exemple, nous pouvons créer un fichier appelé `devdojo.sh`.
4+
5+
Pour créer ce fichier, vous pouvez utiliser la commande `touch` :
6+
7+
```bash
8+
touch devdojo.sh
9+
```
10+
11+
Ou vous pouvez utiliser votre éditeur de texte :
12+
13+
```bash
14+
nano devdojo.sh
15+
```
16+
17+
Pour lancer un fichier contenant un script bash avec l'interpréteur shell, la première ligne de ce fichier doit indiquer le chemin absolu de l'exécutable bash :
18+
19+
```bash
20+
#!/bin/bash
21+
```
22+
23+
On appelle cet en-tête un [Shebang](https://fr.wikipedia.org/wiki/Shebang).
24+
25+
Le shebang sert uniquement à informer le système d'exploitation qu'il doit lancer le script avec l'exécutable `/bin/bash`.

0 commit comments

Comments
 (0)