AWK Column Extractor Playground

awk is the swiss-army knife of text column extraction on Linux. It splits input lines into fields automatically based on separators, making log slicing or CSV filtering incredibly fast.

Use this interactive playground to click and select fields, adjust separators, and compile your awk scripts.


Interactive AWK Column Slicer

Configure inputs and select columns to generate the matched field indices and raw shell commands.

[ LOG DATA INPUT & PARSING ]
Input logs (spaced or comma-separated): Extracted Column Results:

[ AWK SETTINGS ]
Field Separator (-F)
Select columns to extract:
[ COMPILED AWK COMMAND ]

--- ### AWK Variables Quick Guide * **`$0`:** Represents the entire raw line (unaltered). * **`$1, $2, ... $N`:** The corresponding extracted column elements parsed from left to right. * **`NF` (Number of Fields):** Built-in variable representing the total count of columns in the current line (e.g. printing `$NF` prints the last column). * **`NR` (Number of Records):** Holds the current line number index starting at 1.