informatique:linux:awk
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatique:linux:awk [2019/06/06 09:21] – fonction trim pteu | informatique:linux:awk [2020/10/27 17:30] – [Exemples] afficher $N fois le caractère $C pteu | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | ||
- | |||
- | |||
======awk====== | ======awk====== | ||
Line 86: | Line 83: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
===Le cas printf=== | ===Le cas printf=== | ||
Line 194: | Line 192: | ||
echo -e " | echo -e " | ||
awk -F\: '{ sub(/^[ \t\r\n]+/, "", | awk -F\: '{ sub(/^[ \t\r\n]+/, "", | ||
+ | </ | ||
+ | |||
+ | * ne pas afficher les lignes en doublon | ||
+ | <code bash> | ||
+ | # count s' | ||
+ | awk ' | ||
+ | </ | ||
+ | |||
+ | * afficher $N fois le caractère $C : | ||
+ | <code bash> | ||
+ | N=10 | ||
+ | C=# | ||
+ | printf " | ||
</ | </ |
informatique/linux/awk.txt · Last modified: 2022/04/13 13:03 by pteu