Difference between revisions of "Command Line Examples: gawk"
From PHYSpedia
(Created page with "<code>gawk</code> is a powerful stream editor that can be used in command pipelines to perform special functions that do not have a command written for. The easiest use of gawk (…") |
|||
Line 1: | Line 1: | ||
<code>gawk</code> is a powerful stream editor that can be used in command pipelines to perform special functions that do not have a command written for. The easiest use of gawk (and a very common one) is to manipulate the columns in text stream. | <code>gawk</code> is a powerful stream editor that can be used in command pipelines to perform special functions that do not have a command written for. The easiest use of gawk (and a very common one) is to manipulate the columns in text stream. | ||
+ | |||
+ | In the examples that follow, assume that a file name <code>test-data.txt</code> exists and contains 3 columns of data. |
Revision as of 12:23, 20 February 2013
gawk
is a powerful stream editor that can be used in command pipelines to perform special functions that do not have a command written for. The easiest use of gawk (and a very common one) is to manipulate the columns in text stream.
In the examples that follow, assume that a file name test-data.txt
exists and contains 3 columns of data.