bug-coreutils
[Top][All Lists]
Advanced

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

Re: md5sum


From: Bob Proulx
Subject: Re: md5sum
Date: Mon, 10 Nov 2003 10:33:05 -0700
User-agent: Mutt/1.3.28i

Mike Black wrote:
> md5sum would be a good thing to use to store checksums on files for forensics 
> and chain-of-evidence usage.
> So putting it in a pipe like from the SHADOW utils would be great to store 
> the validation sums for the tcpdump logs.

If in the future you would be so kind as to word wrap your messages at
some reasonable column such as 72 it would be most appreciated.

> But md5sum can't output to a file -- only to stdout.

But stdout is trivially redirected to files.  Perhaps you were unaware
of the shell's ability to redirect output?  Try this out.

  md5sum file1 file2 > output

> Perhaps we can add a -f/--file switch to store the sum?

Is there a circumstance where redirection of stdout to a file is not
possible?  This is the typical way to do things on unix-like operating
systems.

> Then we can tee any output to md5sum.

The 'tee' command as you mention also can redirect stdout to a file.

  md5sum file1 file2 | tee output

Hope that helps.

Bob




reply via email to

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