binary file file.f1
which has String abc
I want to overwrite it with adcd
perl -pi -e s/abc/abcd/ file.f1
works but it inserts it rather than overwriting it, which causes error for the program which uses it
I'm not sure how will I be able to do that without making things more complex, I'd prefer if it used tools like sed, grep, python, perl one liners which are available by default on UNIX system
I'm not very experienced user and am very new to these tools
edit- hope its clear now
data inside bin file is like
[abc def xyz]
when doing perl -pi -e s/abc/abcd/ file.f1
it becomes [abcd def xyz]
what i want is to overwrite it with a extra [space] so it becomes
[abcd ef xyz]