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/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
-- 
http://www.morgad.co.uk/index.html
DP: http://www.pgdp.net   NTP: http://www.pool.ntp.org
L&B: http://www.lynton-rail.co.uk

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