hpr4353 :: diff and patch
Learn how to use diff and patch
Hosted by Klaatu on Wednesday, 2025-04-09 is flagged as Clean and is released under a CC-BY-SA license.
bash, linux, diff, patch.
(Be the first).
Listen in ogg,
opus,
or mp3 format. Play now:
Duration: 00:30:26
Download the transcription and
subtitles.
Bash Scripting.
This is an open series in which Hacker Public Radio Listeners can share their Bash scripting knowledge and experience with the community. General programming topics and Bash commands are explored along with some tutorials for the complete novice.
Make a diff:
$ diff --unified --new-file --recursive original/ my-revision/ > my.patch
Send my.patch to somebody so they can use it as input for the patch command:
$ patch --strip 0 < my.patch