[Top][All Lists]

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

[coreutils] [PATCH] md5sum: Add option to ignore non-existant files

From: Luther
Subject: [coreutils] [PATCH] md5sum: Add option to ignore non-existant files
Date: Wed, 08 Dec 2010 22:14:50 -0500

Normally, when I use md5sum, it's when I download a file and an MD5SUMS
file that comes with it. This MD5SUMS file usually lists many files
including the one I downloaded. When I run 'md5sum -c MD5SUMS', I get
many error messages about files that I don't have. Obviously, I don't
care about the files I didn't download, and the error messages make it
difficult to see the output relating to the file that I do care about.

I suggest a new option, -i/--ignore-missing, which ignores any filenames
that do not exist on the filesystem.

In my patch, the option simply suppresses both relevant error messages.
Another approach might be to have digest_check check to see if the file
exists. If it doesn't, don't call digest_file or print the 'FAILED'

Sorry if my patch is a little messy, being in 3 parts. I'm not used to
using git.

HTH, and let me know what you think...

Please do not send me Microsoft Office/Apple iWork documents. Send
OpenDocument instead!

Attachment: 0001-md5sum-Added-option-ignore-missing.patch
Description: Text Data

Attachment: 0002-src-md5sum-Change-tabs-to-spaces.patch
Description: Text Data

Attachment: 0003-doc-coreutils.texi-Document-md5sum-i.patch
Description: Text Data

reply via email to

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