Vous pouvez utiliser plusieurs commandes sed dans une commande sed simple comme suit
You can use multiple sed commands in a single sed command as follows
Un moyen rapide et facile de commenter toutes les lignes dans un fichier est d'utiliser la commande sed.
A quick and easy way to comment out all the lines in a file is by using the sed command.
Pour améliorer la lisibilité, chaque commande sed est placée sur une ligne distincte.
To improve readability, each SED command is written on a separate line.
Pouvez-vous deviner ce que la commande sed suivante fait?
Can you guess what the following SED command does?
Par conséquent, votre commande sed ressemble à ceci
Hence, your SED command looks like this
Aussi, alors que la commande sed est utilisée ici pour faciliter le copier-coller depuis ce billet de blogue, en pratique, vous ferez probablement ce genre d'édition avec un éditeur interactif.
Also, while the sed command is used here to make copying and pasting from this blog post easier, in practice you'll likely do these sorts of edits with an interactive editor.
Vous trouverez tous les détails à propos de la commande sed dans sa page de manuel.
Complete details of the sed command can be found from the sed manual page.
Dans l'exemple ci-dessus, le numéro à la fin de la commande sed (ou au lieu du drapeau) implique l'apparition 2ème.
In the above example, the number at the end of the SED command (or at the place of flag) implies the 2nd occurrence.
Dans l'exemple suivant, la version ETD est supérieure à la version 4.2.2, d'où la commande sed avorte son exécution.
In the following example, the SED version is greater than version 4.2.2, hence the SED command aborts its execution.
! /usr/Donc on fait la rédaction de la fichier setup.sh par la commande sed ci-dessous.
So you can edit the setup.sh file with the following sed command.
Outil de recherche et manipulation dans des fichiers JSON, similaire à la commande sed d'Unix.
Search and transformation tool for JSON files, similar to the Unix sed command.
Nous avons utilisé la même commande SED.
We used the same SED command.
Pour spécifier plusieurs commandes, nous avons utilisé -e commutateur de la commande SED.
To specify multiple commands, we used -e switch of the SED command.