問題文
A single pipeline needs to add a field holding the elapsed seconds and another field holding a label derived from the status code. The team wants to avoid repeating the command. Which approach matches how eval accepts more than one assignment?
選択肢
- Write both assignments in one eval, separating them with a pipe character, because each assignment is treated as its own stage of the pipeline.
- Use fillnull for the second field and a separate second eval command, because eval accepts only one assignment.
- Write both assignments in one eval, separating them with a comma, because eval accepts several assignments in a single invocation.
- Write the two assignments in one eval separated by a space, because eval reads each assignment as a separate term the way the search command reads its terms.