Menu

#1 Show file length on MD5

Next_Release
closed
5
2006-07-30
2004-06-07
No

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

Discussion

  • Johann N. Löfflmann

    • labels: --> Interface Improvements
    • assigned_to: nobody --> jonelo
    • summary: show file length on MD5 --> Show file length on MD5
     
  • Johann N. Löfflmann

    • status: open --> closed
     
  • Johann N. Löfflmann

    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" *

     
  • Johann N. Löfflmann

    • milestone: --> Next_Release
     
  • Johann N. Löfflmann

    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

     

Log in to post a comment.