Difference between revisions of "Using awk grep sed"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
 
Line 1: Line 1:
 +
grep does not alter a file, it only finds matches while awk and sed are text processors.
 +
 +
awk is mostly used for data extraction and reporting. sed is a stream editor
 +
Each one of them has its own functionality and specialties.
 +
 +
== sed ==
 +
Things that you can accomplish using RegEx within the Vi editor on text files can also be accomplished at the command line with sed.
 +
 +
 +
 
[[Category:Computer_Technology]]
 
[[Category:Computer_Technology]]
 
[[Category:Linux]]
 
[[Category:Linux]]

Revision as of 09:31, 14 January 2020

grep does not alter a file, it only finds matches while awk and sed are text processors.

awk is mostly used for data extraction and reporting. sed is a stream editor Each one of them has its own functionality and specialties.

sed

Things that you can accomplish using RegEx within the Vi editor on text files can also be accomplished at the command line with sed.