1er commit
De la docs au format Mkdocs
This commit is contained in:
35
docs/Linux/redirections.md
Normal file
35
docs/Linux/redirections.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# I/O Redirections
|
||||
|
||||
#### Standard Output
|
||||
|
||||
Redirige la sortie standart vers un nouveau fichier:
|
||||
|
||||
```bash
|
||||
bruno@macbook-pro:~$ ls > liste.txt
|
||||
```
|
||||
|
||||
|
||||
|
||||
Redirige la sortie standart vers un fichier (ajoute à la suite):
|
||||
|
||||
```bash
|
||||
bruno@macbook-pro:~$ ls >> liste.txt
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Standard Input
|
||||
|
||||
Considère liste.txt comme entrée standart (au lieu du clavier):
|
||||
|
||||
```bash
|
||||
bruno@macbook-pro:~$ sort < liste.txt
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### On peut combiner les 2
|
||||
|
||||
```bash
|
||||
bruno@macbook-pro:~$ sort < liste.txt > liste_triee.txt
|
||||
```
|
||||
Reference in New Issue
Block a user