Which command searches the line the cursor is on for the first occurrence of the string old and replaces it with the string new?

A. :s/old/new
B. :s/new/old
C. :3,15s/old/new/g
D. :%s/old/new/g


Answer: A

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a) A Finally block is placed after the last Catch block. b) A Finally block should release all resources acquired in the corresponding Try block. c) The Finally block and Try block can appear in any order. d) A Finally block is optional.

Computer Science & Information Technology

You can use ____________________ bars to help show how many days a noncritical task can be delayed and not affect the project Finish date.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What is a multifunctional device? What are the advantages/disadvantages of such a device?

What will be an ideal response?

Computer Science & Information Technology

Structured types can be decomposed into simpler types that are related within a defined structure.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology