Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Utility for check sum of file

Status
Not open for further replies.

ManjulaMadhu

Programmer
Jan 7, 2003
85
SG
Hi,

sorry guys. this question is totally off the forum. I am tempted to post it here as I am assured of getting a reply.
Here's my query:

Does anyone know about a utility which can output the checksum of a file (I mean add up all the characters/spaces/numbers ..in the file ..using some internal funky logic of its own :)) . In addition it will be good if it can also give the file size and other details of the file.

My input will be somthing like : utility <filename> It has to give an output of a number.

Comparing the source and destination file sizes for this seems to be a good idea. but , sometimes its deceptive. I need to know even if there is a change in a space between the two files.

Thanks,

 
Not entirely off - topic. I use &quot;sum&quot; on Solaris to checksum files between production and standby instance:

NAME
sum - print checksum and block count for a file

SYNOPSIS
sum [-r] [file...]

e.g.
$ sum control.ctl
21182 491 control.ctl

 
exactly..icahn..

I am looking for something like this on Unix or ORacle.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top