M
M
My joy2016-04-21 13:03:39
Debian
My joy, 2016-04-21 13:03:39

Replacing text in a bunch of files via console?

Comrade friends, greetings.
There are sitemaps (50+ files of 20k lines each) you need to change all http:// links to https://
in all How can this be done using the console? find there or what else? Go through all the files at once and change http to https. I'm a linux noob and manually editing files is not an option at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Bogachev, 2016-04-21
@t-alexashka

Most likely, sed will do
(in the example, change http to https in all files in the current directory)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question