Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

567.Search replace binary -- How to delete everything starting specific bytes till the end in many files?

User: editor -- 2010-07-17          << 566  568 >>
Hits: 371
Type: Search replace binary   
Search all Search replace binary examples
Description:
I noticed that some of my files have at the end added some bytes, they start with header:

D0 CF 11 E0 A1 B1 1A E1

How could I delete everything starting with first such string till the
end of the file in ~ 900 files?
Input Sample:
...
...
D0 CF 11 E0 A1 B1 1A E1(binary bytes)
...
Output Sample:
...
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" menu
2. drag all the files you need to convert to "Batch Runner" window
3. click "Fast Replace" button open "Fast Replace" window
* click "Add", enter following in "Search" entry:

* enter nothing in "Replace" entry, and click "OK"
* check option of "Regular Exp", "Cross Line", and "Binary File"
4. click "Start", done!

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to replace bytes in the specific postion of many binary files? (60%)
How to add specified text to the begin and end of many text files? (56%)
How to delete lines 1-9, 21, 24 from many files? (55%)
How to replace every 3 instances found in a text file? (55%)
How to remove leading and trailing blanks in each line in many files? (54%)
How to list all specific terms that appearing in a text file? (54%)
How to remove everything from start of line to the first comma in each line? (53%)
How to delete the first 1-10 lines in many files?  (53%)

Check Demo of Search replace binary
Keywords:
header  specific  search replace binary  replace binary  bytes  binary file  binary fil  binary  bina  cross line  replace string in binary file  replace string in binary files  replace first string  replace bytes in binary file  binary file replace bytes  replace bytes binary file  delete the first  delete first