|
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
[Prev in Thread] | Current Thread | [Next in Thread] |