awk Flashcards
1
Q
What is awk
used for?
A
- processing structured text data, especially data organized in rows and columns
- search for patterns in each line of a file or stream and perform specific actions on those lines
2
Q
When would you choose awk
over sed
?
A
when need to work with data that is organized in columns (or fields)
3
Q
Why is awk
good for processing columns?
A
because it automatically splits each line into fields based on a delimiter (like space, tab, comma, etc.).
4
Q
In what situation would you use awk
?
A
when dealing with tasks that require extracting, transforming, and summarizing data from structured text files (like CSV, log files)
5
Q
Can awk
be used for editing?
A
no