patch is a Unix program that updates text files according to instructions … – Wikipedia, the free encyclopedia

patch (Unix) – Wikipedia, the free encyclopedia

The article includes “usage examples”, and it refers to another article named “diff variations“, which is quite useful to read for better understanding of the matter.

“Somebody” requested me to test critical software and to keep the number of changes to the software itself minimal. He suggested, I should find a way of creating the changes, that I think are necessary to ease my testing, automatically, ie. to sort of “patch” the original file. After I had gotten told that a couple of times, it clicked in my upper storey. Why not use the homonymous UNIX utility? This may not be very innovative, but it somehow enraptured me.

On AIX patch and “diff -u” don’t seem to work together.


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.