%20por%20um%20arquivo.png)
Quero substituir/remover texto de todos os arquivos por um arquivo.
$ echo "_uU_%UHY%^GSSD$%GWRW$T#wf4werwefF$fW#$wfdd%6blahblahblah" > pattern.txt
$ sudo grep -rl "_uU" . | xargs sed -ie s/$(cat pattern.txt)//g
mas meu comando não está funcionando. como posso fazer isso?
Responder1
Resolvido. Tem que remover -e
a bandeira.
$ echo "_uU_%UHY%^GSSD$%GWRW$T#wf4werwefF$fW#$wfdd%6blahblahblah" > pattern.txt
$ sudo grep -rl "_uU" . | xargs sed -i s/$(cat pattern.txt)//g