AWK: Difference between revisions

97 bytes added ,  4 years ago
 
(One intermediate revision by the same user not shown)
Line 5:
= Basics =
 
Source: [https://www.geeksforgeeks.org/awk-command-unixlinux-examples/ geeksforgeeks.org]
*Awk is a scripting language used for manipulating data and generating reports.
 
* Awk is a scripting language used for manipulating data and generating reports.
* Field variables — $1, $2, $3,
* $0 is the entire line.
* Usage:
cat stats_collection.log | grep svmem | awk '{print $1 " " $2," - ",$7}'
 
= Built In Variables =