25-07-2021
This commit is contained in:
@@ -20,6 +20,8 @@ snowleopard macOS
|
||||
|
||||
|
||||
|
||||
### Colonnes:
|
||||
|
||||
Afficher la 1ere colonne d'un fichier:
|
||||
|
||||
```bash
|
||||
@@ -186,6 +188,28 @@ snowleopard
|
||||
|
||||
|
||||
|
||||
### Lignes:
|
||||
|
||||
Afficher la 3eme ligne:
|
||||
|
||||
```bash
|
||||
$ awk 'NR==3' test.txt
|
||||
mint
|
||||
```
|
||||
|
||||
Afficher les ligne 2 à 4:
|
||||
|
||||
```bash
|
||||
$ awk 'NR>=2 && NR<=4' test.txt
|
||||
ubuntu
|
||||
mint
|
||||
debian
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Divers:
|
||||
|
||||
Passer un argument à awk:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user