Replace on java class files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaarthikeyapreyan
    New Member
    • Apr 2007
    • 106

    Replace on java class files

    There was a search for a string usring grep in binary mode on a class file, and a replace for a corresponding entity using sed. this change was not effective and the file did not respond. wat could be possible point of failure, is this a wise method to do or recompile the source file and put it back.
  • shabinesh
    New Member
    • Jan 2007
    • 61

    #2
    Tough i really don't understand the purpose, i guess replacing a string in the file is your need ,I think this can be a pointer

    dd if=file.txt | hexdump -C | sed 's/pattern/r_str/g' | dd of=file.txt

    did my assumption help you. and sorry if irrelavant

    Comment

    Working...