\frametitle{awk: The Pattern-Action Model}
\begin{block}{How it works}
\texttt{awk} automatically loops over every line. You define \alert{patterns} and \alert{actions}.

\centering \large \texttt\{awk 'pattern \{ action \}' file\}
\end{block}
\begin{exampleblock}<2->{Basic Examples}\label{sec:org87c9a29}
\begin{verbatim}
# Print 1st and 3rd columns (default delimiter: space)
$ awk '{print $1, $3}' data.txt

# Filter by value: print line if 2nd col > 100
$ awk '$2 > 100' data.txt

# Use a custom delimiter (e.g., colon)
$ awk -F':' '{print $1}' /etc/passwd
\end{verbatim}
\end{exampleblock}
