Re: [translations] comparing multiple files |
[ Thread Index |
Date Index
| More lilynet.net/translations Archives
]
- To: Federico Bruni <fedelogy@xxxxxxxxx>
- Subject: Re: [translations] comparing multiple files
- From: Francisco Vila <paconet.org@xxxxxxxxx>
- Date: Mon, 18 Jul 2011 10:32:42 +0200
- Cc: Translations list at lilynet <translations@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=65ma0ge58lLE7uQyaHpS2YYQMJrFXOfVnuUJaikZPO4=; b=m//PAtnzBEu1OeKzJbv+2vLC4kSzFtt+KGkjbjaha8QUQo2bG6+JIeH53j+h2LS/sK 41lrEY+r89TCmHje88aFQszmy+XRjMZBS1zB2OXeJkFfTqln54mtJoooWu3qI/6bT7pR ZIdnzc1XAlcVANlZT3r7KKK0o0r5/Apob8mbI=
2011/7/18 Federico Bruni <fedelogy@xxxxxxxxx>:
> Hi,
>
> I've received the revision of the texidoc/ files from the italian
> proofreader and I'd like to automatically generate the .diff file for
> each file (in order to see his changes).
>
> IIUC, diff can only compare two files or the list of files in two
> directories.
> Should I use some bash script?
If you prefer a bash script, try this command line. Say you are in
Documentation/it/notation and newly corrected files are
Documentation/it/notation/new/file1.itexi, file2.itexi and so on.
rm alldiffs # remove it first if it exists
for f in file1 file2 file3 ; do diff -u $f.itexi new/$f.itexi >>
alldiffs ; done
then
less alldiffs
--
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com