patch utility

Does it find somewhere a line-level patch utility like in QNX2 ? There it
was possible to say “patch offset=88 b=00” after having cmp’ed two files.
Rarely used to fix application bugs by phone (change in source, link,
compare with cmp -l and patch few bytes).

spatch is not what I need, cause it’s too difficult to attend by personal.

BTW: In QNX2 the output off “diff +r” (like cmp -l") was in decimal while
patch loved hex input. Very charming for the user at the machine if having
no hex-to-dec pocket computer…

Thanks
/martin

Martin Koehler <software@pcds.de> wrote:

Does it find somewhere a line-level patch utility like in QNX2 ? There it
was possible to say “patch offset=88 b=00” after having cmp’ed two files.
Rarely used to fix application bugs by phone (change in source, link,
compare with cmp -l and patch few bytes).

I don’t know of one – but it sure shouldn’t be hard to write…

parse arguments
open( filename )
lseek( offset )
write( byte/short/long )
close()

You’ll probably spend more time on writing the code to parse the
arguments than to implement the code. getopt() can be your friend.

-David