Merge pull request #757 from solarsailer/awk

awk: add /search/ example
waldyrious/alt-syntax
Leandro Ostera 2016-02-05 21:22:02 +01:00
commit 102ce3f382
1 changed files with 4 additions and 0 deletions

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