shell:sed
Differences
This shows you the differences between two versions of the page.
| shell:sed [2014/10/28 18:03] – créée ginko | shell:sed [2014/10/28 18:11] (current) – ginko | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| * Passer plusieurs commandes : les séparer par '';'' | * Passer plusieurs commandes : les séparer par '';'' | ||
| * Utiliser les regex : '' | * Utiliser les regex : '' | ||
| + | |||
| + | ==== Appliquer un sed au clipboard sous cygwin ==== | ||
| + | - Créer un script qui contient les commandes. Exemple : <file bash sed_sap.sh>/ | ||
| + | # Convert table put in clipboard by sap into tab-separated table pastable in excel | ||
| + | # By Ginko, 28/10/2014 | ||
| + | # Explanation : | ||
| + | # Get clipboard content | ||
| + | # Get lines starting at forth one (= deletes header information) | ||
| + | # Delete lines composed uniquely of dashes | ||
| + | # Remove leading and trailing pipes | ||
| + | # Replace separating pipes (and spaces) by tabs | ||
| + | # Put content back in clipboard</ | ||
| + | - Créer un raccourci windows qui appel ce script via dash. Exemple : '' | ||
| + | |||
| + | Il suffit alors de lancer le raccourci. | ||
shell/sed.1414515838.txt.gz · Last modified: 2014/10/28 18:03 by ginko
