Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: search and replace (in-place) strings in binary

by LanX (Cardinal)
on Jul 16, 2020 at 16:37 UTC ( #11119411=note: print w/replies, xml ) Need Help??


in reply to search and replace (in-place) strings in binary

please define "textual strings in binary file"

best by pasting an example

> Is this correct: perl -i.bak -pe s/search-this-string/replace-with-this-string/g file.bin

so what happened?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11119411]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2021-02-28 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?