From ca520853671bf3c86a9312b82978d2a78bd0668d Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Fri, 23 Jun 2017 15:02:45 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20mot=20en=20d=C3=A9but=20buffer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TipsShell.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TipsShell.md b/TipsShell.md index 51a60b1a..2627448f 100644 --- a/TipsShell.md +++ b/TipsShell.md @@ -100,6 +100,12 @@ $ ./liste_serveur.sh | tac | grep -n NOUVEAU_SERVEUR -> 'grep -n' reviens au même que 'nl | grep' +## Ajout mot en début de chaque ligne d'un buffer + +~~~ +$ sed 's/^/Coucou /g' <<<"$VAR" +~~~ + # Fichiers et FS ## Ordinaire