view en/examples/mq.dodiff @ 563:951bf84ca8e2

translated up to the section "testing and troubleshooting"
author Javier Rojas <jerojasro@devnull.li>
date Tue, 23 Dec 2008 18:57:35 -0500
parents cac3ac4536e5
children
line wrap: on
line source

#!/bin/bash

#$ name: diff

echo 'this is my original thought' > oldfile
echo 'i have changed my mind' > newfile

diff -u oldfile newfile > tiny.patch

cat tiny.patch

patch < tiny.patch

cat oldfile