mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
awk, gawk: fix command syntax (#20911)
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@
|
||||
|
||||
- Print all the lines which the 10th column value is between a min and a max:
|
||||
|
||||
`awk '($10 >= {{min_value}} && $10 <= {{max_value}})'`
|
||||
`awk '($10 >= {{min_value}} && $10 <= {{max_value}})' {{path/to/file}}`
|
||||
|
||||
- Print table of users with UID >=1000 with header and formatted output, using colon as separator (`%-20s` mean: 20 left-align string characters, `%6s` means: 6 right-align string characters):
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
- Print all the lines which the 10th column value is between a min and a max:
|
||||
|
||||
`gawk '($10 >= {{min_value}} && $10 <= {{max_value}})'`
|
||||
`gawk '($10 >= {{min_value}} && $10 <= {{max_value}})' {{path/to/file}}`
|
||||
|
||||
- Print table of users with UID >=1000 with header and formatted output, using colon as separator (`%-20s` mean: 20 left-align string characters, `%6s` means: 6 right-align string characters):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user