HF RL Explorer

Task: Print Matched Regex Pattern Using AWK

Task: Print Matched Regex Pattern Using AWK: a task in Terminal-Lego-15k (Harbor dataset). Write an awk command or script that finds and prints only the words (fields) in a file that match a given regex pattern. The output should contain only the matched words, not the entire lines.

The task

Write an `awk` command or script that finds and prints only the words (fields) in a file that match a given regex pattern. The output should contain only the matched words, not the entire lines.

Part of PrimeIntellect/Terminal-Lego-15k.