Multiple choice technology platforms and products

Choose the flags used in substitue command.

  1. f

  2. g

  3. c

  4. m

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

In the vi/sed substitute command (s/pattern/replacement/flags), 'g' stands for global substitution (replace all occurrences in a line), and 'c' stands for confirm (prompt before each substitution). Both are valid flags.