Difference between revisions of "Awk"

From Freephile Wiki
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>

Revision as of 00:52, 30 January 2017