Using awk grep sed
From Free Knowledge Base- The DUCK Project: information for everyone
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.