Linux/Basic commands/awk

AWK is a language/utility designed and used mainly for text processing.

Basic Examples

 * Prepend a variable string ($STRING_TO_PREPEND) at the beginning of every line

In case text to prepend is a variable ($PREPEND_TEXT_VAR):

Prepend time before every line


 * Remove leading spaces at the beginning of a line:


 * Print line if field value is larger than:
 * Example:
 * Example:

Activities

 * 1) Read stackoverflow awk questions: https://stackoverflow.com/questions/tagged/awk?tab=Votes