1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 03:35:41 +02:00

awk: add /search/ example

This commit is contained in:
Matthieu Oger 2016-02-04 19:30:40 +01:00
parent 08d9c7f342
commit 423d71f9e5

View file

@ -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}}`