Difference between revisions of "Awk"
Jump to navigation
Jump to search
(reformat the pre section into mediawiki syntax) |
(add example to get first column from mw data table) |
||
Line 1: | Line 1: | ||
+ | == Examples == | ||
+ | get first column from mw table data | ||
+ | awk '/\|-/{getline;print}' /tmp/terror.txt | sed s/\|// | sed s/'^ *'// | sort -u | ||
+ | |||
== One-liners == | == One-liners == | ||
<pre> | <pre> |