Replacing URL within multiple txt file with Linux terminal

Asked

Viewed 42 times

0

I have several files. txt

Ex: arquivo1.txt arquivo2.txt arquivo3.txt

Inside these files I have several urls as follows:

https://www.site.com.br/diretorio/
https://www.site.com.br/diretorio/
https://www.site.com.br/diretorio/

I’d like to replace it with:

https://www.novosite.com.br 

That is, a new website address and without the "/directory/"

1 answer

2


  • Thank you Kleudy!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.