Earthly ➤ https://earthly.dev
In this tutorial, we delve into the power of AWK at the command line, focusing on two key functionalities.
Firstly, we demonstrate how AWK can be used to selectively pick specific rows from the results of a command, showcasing examples with the "LS" command.
Secondly, we explain how AWK allows users to filter rows based on specific criteria, such as matching patterns in columns.
We provide practical examples, including extracting container IDs from Docker results and finding processes using Chrome or specific ports. While emphasizing the simplicity of AWK for everyday use, we also mention its potential for more advanced data analysis, pointing you to additional resources for further learning.
00:00 Introduction
00:47 AWK Column Picking
01:29 AWK Matching Specific Row
02:29 AWK Regex Matching
03:14 AWK from the History File
03:54 AWK Kill Chrome
04:07 AWK LSOF and localhost
04:28 AWK Host File
04:41 AWK System Paths And Name Server
05:04 The AWK Programming Language Book