mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-19 01:43:18 +08:00
awk: add /search/ example
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
|
||||
`awk '{print $5}' {{filename}}`
|
||||
|
||||
- Print the second column of the lines containing "something" in a space separated file:
|
||||
|
||||
`awk '/{{something}}/ {print $2}' {{filename}}`
|
||||
|
||||
- Print the third column in a comma separated file:
|
||||
|
||||
`awk -F ',' '{print $3}' {{filename}}`
|
||||
|
||||
Reference in New Issue
Block a user