Skip to content
Advertisement

Replace line with double quotes

I want to replace a line with double quotes on OpenBox startup, like:

JavaScript

with

JavaScript

I use this command, but it does not work:

JavaScript

It gives me this error:

JavaScript

Advertisement

Answer

The ampersand in the replacement string recalls the pattern in the search string.

So you can just do this:

JavaScript

Also, you can use single quotes on the outside, and double quotes on the inside or use ” on the inner double quote.

JavaScript

or

JavaScript
Advertisement