binary file problem

vastark
2013-03-29
2013-04-02
  • vastark
    vastark
    2013-03-29

    hi, i want to replace all texts in MyDll.dll from "Delta" to "Alpha" .
    so i try this :

    sfk filter MyDll.dll -rep "/Delta/Alpha/" -write -yes -verbose

    but i received this report :

    skipping binary file: MyDll.dll
    1 binary files skipped.

    how to fix it ?

    also i want to know is SKP support Unicode texts to replace in binary file ?

    Thanks :)

     
    Last edit: vastark 2013-03-29
  • stahlworks
    stahlworks
    2013-03-29

    sfk filter is only for text files. use sfk replace instead:

    sfk replace MyDll.dll -text "/Delta/Alpha/"
    

    you may also want to use -case for case sensitive replace, which is not default.

    there is no direct unicode support. you have to find out how your unicode text reads as hex bytes (e.g. through sfk hexdump), then try something like sfk replace ... -bin /0123/0456/ to replace binary blocks.

     
  • vastark
    vastark
    2013-03-29

    Great..Worked so perfect and really fast. Thank you so much :)
    about Unicode you are right cause i think we can't use Unicode in command line (i'm not sure) and so hex bytes is the way.

     
  • DV
    DV
    2013-04-02

    You can be double-ensured in the opposite by FAR Manager - the console file manager. It perfectly handles unicode file names (showing, copying, renaming, etc.) plus it allows to edit UCS-2 and UTF-8 text files in its internal text editor. (It's under Windows.)
    Under Linux and Unix, there is Midnight Commander (MC) that handles UTF-8.

     
    Last edit: DV 2013-04-02