Awk: Difference between revisions
From Freephile Wiki
add example to get first column from mw data table |
No edit summary |
||
Line 2: | Line 2: | ||
get first column from mw table data | get first column from mw table data | ||
awk '/\|-/{getline;print}' /tmp/terror.txt | sed s/\|// | sed s/'^ *'// | sort -u | awk '/\|-/{getline;print}' /tmp/terror.txt | sed s/\|// | sed s/'^ *'// | sort -u | ||
== Docs == | |||
The man page for Awk is 27 pages long. Hard to read in a terminal. Here is [[File:Awk.pdf|a PDF copy of the Awk manual]] a PDF copy of the Awk manual | |||
== One-liners == | == One-liners == |