Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by LanX (Saint)
on Jul 16, 2020 at 16:37 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119411]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-25 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found