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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When would you choose awk over sed?

A

when need to work with data that is organized in columns (or fields)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can awk be used for editing?

A

no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly