Where to start First steps track · 15 stages
Linux Labs

Bash: text processing and scripts

Quiz: searching and editing text

Question 1 of 10
Leave the quiz

grep patterns: where a match sits, -w, -E and |, -o, the dot; a sed replacement with a line address and an in-place edit with -i.bak; awk fields and the -F separator. The questions follow the lessons “Regular expressions in grep” and “sed and awk: editing and fields of a stream”.

10 questions · threshold 70%

One correct answer

A log has three lines: WARN disk 91%, Warning: swap used and user=swarnick login. Which of them will grep -i warn print?

A–D or ↵ Sign in to answer
Loading…