D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] diff and eol characters

 

On 21/11/10 11:08, Dave Morgan wrote:
On 21/11/2010, tom<tompotts@xxxxxxxxxxxxxxxxxxxxxx>  wrote:
Just wondering if anyone knows of an easy way of getting diff to ignore
the difference between a unix txt file and a windows text file. ie. lf
as opposed to cr/lf.
Tom te tom te tom

not tried, but the fine manual suggests:

diff  --strip-trailing-cr file1 file2

Dave
I tried that and it didnt seem to work ( cr/lf not a trailing cr?) - I've found that the diffxx 'ignore whitespace' option does the trick though so I can find real code changes now!
Tom te tom te tom

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq