I have many .js files named the same (got.js) where i just need to find and replace some text on them. The text to find is:
\x72\x6Fx75\x6E
And is to be replaced with: \x72\x6F\x75\x6E
(just a \ in the middle)
I have tried SED with find, exactly this one:
find '/home/' -name 'got.js' -exec sed -i -e 's%\x72\x6Fx75\x6E%\x72\x6F\x75\x6E%g' '{}' %;
but i get an error find: missing argument to '-exec'
. If i change %
to \
, it don't show any error, files last modified date changes, but nothing changes on the files.
Also, i should mention that this \x72\x6Fx75\x6E
text is part of a big encoded phrase. I thought that this may be the problem, and putted the whole phrase in the sed, but the result was the same: nothing changes :-(
Hope that someone can help me on this.
Thanks to everyone!
Asked
Active
Viewed 694 times
0

Kleidi
- 15
- 6
Thanks again! – Kleidi Jan 26 '16 at 14:38