awk:awk_output
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
awk:awk_output [2021/01/06 15:38] – peter | awk:awk_output [2022/06/13 09:47] (current) – peter | ||
---|---|---|---|
Line 16: | Line 16: | ||
===== Display Tidy Output ===== | ===== Display Tidy Output ===== | ||
- | Multiple commands can be passed together. | + | Multiple commands can be passed together. |
<code awk> | <code awk> | ||
Line 22: | Line 22: | ||
</ | </ | ||
- | which will display something like: | + | returns: |
< | < | ||
Line 65: | Line 65: | ||
===== Adding Text ===== | ===== Adding Text ===== | ||
- | Additional text can be added to lines. | + | Additional text can be added to lines. |
<code awk> | <code awk> | ||
Line 71: | Line 71: | ||
</ | </ | ||
- | which will display something like: | + | returns: |
< | < | ||
Line 86: | Line 86: | ||
===== Advanced Text Output ===== | ===== Advanced Text Output ===== | ||
- | |||
- | For more complex manipulation of text issue the following command: | ||
<code awk> | <code awk> | ||
Line 93: | Line 91: | ||
</ | </ | ||
- | which will display something like: | + | returns: |
< | < | ||
Line 100: | Line 98: | ||
</ | </ | ||
- | The **printf** command can be used to handle more complex output requirements. | + | <WRAP info> |
+ | **NOTE: | ||
This is the list of specifications supported by the printf command: | This is the list of specifications supported by the printf command: | ||
Line 114: | Line 113: | ||
|%x|Prints an unsigned hexadecimal number.| | |%x|Prints an unsigned hexadecimal number.| | ||
|%%|Prints a percent sign; no conversion is performed.| | |%%|Prints a percent sign; no conversion is performed.| | ||
+ | |||
+ | |||
+ | </ | ||
---- | ---- | ||
awk/awk_output.1609947495.txt.gz · Last modified: 2021/01/06 15:38 by peter