Show file length on MD5
a free cross platform checksum utility, supports 58+ hash algorithms
Brought to you by:
jonelo
I am looking into some uses for jacksum output files.
I would like file length to show up in MD5 either by
default or by command line option. e.g.:
public String toString() {
return getHexValue()+separator+
leefixedwidth(length) + separator +
(isTimestampWanted()?
getTimestampFormatted()+separator:"")+
getFilename();
}
private String leefixedwidth(long along)
{
final int swidth = 10;
String s = String.valueOf(along);
if ( s.length() >= swidth )
return s;
return (" ".substring(0,swidth -
s.length()) ) + s;
}
public String toString() { // 20040514 want length
Logged In: YES
user_id=184363
In Jacksum 1.5.0, I have added a new option called -F. With
this option you can define your own output format. Your
request can be solved as shown in the following example:
jacksum -a md5 -f -F "#FINGERPRINT #FILESIZE #FILENAME" *
Logged In: YES
user_id=184363
Jacksum 1.7.0 has been released.
Now it is much easier to get also the filesize:
jacksum -a md5+ -f *
See also
jacksum -h -a