AWK: Difference between revisions
Content added Content deleted
(→Basics) |
|||
Line 28: | Line 28: | ||
* To find/check for any string in any column: |
* To find/check for any string in any column: |
||
awk '{ if($3 == "B6") print $0;}' |
awk '{ if($3 == "B6") print $0;}' employee.txt |
||
* Print lines with more than 10 characters: |
* Print lines with more than 10 characters: |