Embercode
✕
The TerminalQuick quiz

Text tools

8 questions. Covers Columns with awk and cut.

Questions 1 to 5 of 8

  1. 1. What does this print? ``bash echo 'v1.2 and v1x2' | sed -E 's/v1.2/OK/g' ``
  2. 2. The file laugh.txt has four lines: ha, haha, hahaha and hi. What does this print? ``bash grep -E '^(ha){2,3}$' laugh.txt ``
  3. 3. What does this print? Note the two spaces after the address. ``bash printf '%s\n' '10.0.0.5 GET /home 200' | cut -d' ' -f3 ``
  4. 4. Match each command to the job it does in this lesson.

    Choose the matching item for each row.

  5. 5. Match each grep or sed option to what it does.

    Choose the matching item for each row.

5 question(s) left on this page.