informatique:linux:awk
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
informatique:linux:awk [2019/06/06 07:26] – pteu | informatique:linux:awk [2019/06/06 09:21] – fonction trim pteu | ||
---|---|---|---|
Line 188: | Line 188: | ||
echo -e " | echo -e " | ||
toto | toto | ||
+ | </ | ||
+ | |||
+ | * émuler la fonction trim (efface les espaces avant et après une chaine) : | ||
+ | <code bash> | ||
+ | echo -e " | ||
+ | awk -F\: '{ sub(/^[ \t\r\n]+/, "", | ||
</ | </ |
informatique/linux/awk.txt · Last modified: 2022/04/13 13:03 by pteu