patchstr(1)                                                        patchstr(1)



NAME
       patchstr - Patch STRing (in a binary file) (Version 4.0)

SYNOPSIS
       patchstr <file> <from-str> [<target-str>]

OPTIONS
       [<target-str>]
              the string which will substitute <from-str>. If it is not given,
              <from-str> will be deleted (this is NOT a good idea  for  binary
              files;-)

DESCRIPTION
       patchstr  is  intended  to  "patch" strings in binary files. So keep in
       mind to submit two strings w/ same length. Otherwise your  binary  file
       (typically  an  executable  program)  will  not be operational anymore.
       patchstr will not check it, and therefor can not give you any  warning!

       As  you  see,  an input-filename has do be submitted. The output always
       goes to STDOUT.

ENVIRONMENT
       patchstr is part of the sysdoc package. W/in this package it is  deliv-
       ered as static-bind executable to be independant from system-libs. (but
       this makes susbtr a "bit" bigger)

EXAMPLE
       Typically you want a resulting file:

       # patchstr myfile come gone > myfile.patched

HINTS
       ·  Although intended for patching binaries, it will work on every  file
          type, even text-files.

       ·  If some of the strings contain spaces, you have to quote them.

FILES
       /usr/sbin/patchstr
              the executeable program

       /usr/share/doc/packages/sysdoc/patchstr.c
              the source code of patchstr (it is a part of the sysdoc package)

SEE ALSO
       sysdoc(1)

BUGS
       surely ;-) , please feel free to report all of them to me.

LICENSE
       patchstr is licensed under the GPL V2

AUTHOR
       christopher "csh" schnirch <csh(e)sysdoc.de>

DOWNLOAD
       http://www.sysdoc.de



                               January 16, 2011                    patchstr(1)
