A
A
antohabio2021-06-25 12:34:09
linux
antohabio, 2021-06-25 12:34:09

How to compose a multi-line query in the terminal?

Good afternoon.
In the terminal I execute the Mediawiki script command (text replacement)

php replaceAll.php "Заменяемый текст" "Текст на замену"


My replacement text consists of strings, for example,
строка1
Строка2


I need to replace "Line1+paragraph mark" with:
Строка3
Строка4


Those. should get:
Строка3
Строка4
Строка2


The problem is how to write paragraph marks in the query in the console?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim, 2021-06-25
@Viji

use this slash \ and shift+enter
cd ~ && \
> echo "hello"

S
SquareWheel, 2021-06-25
@SquareWheel

|

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question