|o||1 = XER_Usage|
|o||2 = XER_Abort|
This example demonstrates how to hash a file called out (in the current directory) and copy it to /tmp/out.
hashcp out /tmp/out
Example 2. Hash and copy with input from echo(1)This example demonstrates how to hash stdin and copy it to a file called out.echo. The data for stdin will be generated by the echo(1) command.
echo "This is a test." | hashcp - out.echo
Example 3. Hash and copy with input from dd(1)This example demonstrates how to hash stdin and copy it to a file called out.zero. The data for stdin will be generated by the dd(1) command reading from /dev/zero.
dd if=/dev/zero bs=32k count=1 | hashcp - out.zero
This utility was initially written to make the process of copying and validating files more efficient. For example, suppose you need to archive some files for long-term storage (e.g., copy them to an external drive). In that case, you may also want to verify the integrity of those files before you store the drive away in your evidence locker. This utility allows you to do both.
This utility first appeared in FTimes 3.9.0.
|perl v5.20.3||HASHCP (1)||2016-04-05|