coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coreutils] Making md5sum aware of MSDOS line ending feasible?


From: Bob Proulx
Subject: Re: [coreutils] Making md5sum aware of MSDOS line ending feasible?
Date: Wed, 15 Dec 2010 18:33:42 -0700
User-agent: Mutt/1.5.20 (2009-06-14)

Philipp Thomas wrote:
> Eric Blake wrote:
> > (using d2u on the checksum file before handing it to md5sum is usually a
> > decent workaround to having to teach md5sum about alternate line endings).
> 
> That's what the person who asked is doing atm.

While dos2unix isn't always available I would also mention that 'tr'
should always be and can do this nicely too.

  tr -d "\r" < file.MD5SUM | md5sum -c

I am sure you already knew that but since only d2u got mentioned I was
compelled to mention tr for the mail archive. :-)

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]