tests/test-tools.t
changeset 35472 c1f7037c2ded
parent 35471 ea4d27aac557
child 39707 5abc47d4ca6b
equal deleted inserted replaced
35471:ea4d27aac557 35472:c1f7037c2ded
    11     -s, --size            show size of file
    11     -s, --size            show size of file
    12     -n NEWER, --newer=NEWER
    12     -n NEWER, --newer=NEWER
    13                           check if file is newer (or same)
    13                           check if file is newer (or same)
    14     -r, --recurse         recurse into directories
    14     -r, --recurse         recurse into directories
    15     -S, --sha1            show sha1 hash of the content
    15     -S, --sha1            show sha1 hash of the content
       
    16     --sha256              show sha256 hash of the content
    16     -M, --md5             show md5 hash of the content
    17     -M, --md5             show md5 hash of the content
    17     -D, --dump            dump file content
    18     -D, --dump            dump file content
    18     -H, --hexdump         hexdump file content
    19     -H, --hexdump         hexdump file content
    19     -B BYTES, --bytes=BYTES
    20     -B BYTES, --bytes=BYTES
    20                           number of characters to dump
    21                           number of characters to dump
    38   $ f foo
    39   $ f foo
    39   foo:
    40   foo:
    40 
    41 
    41   $ f --sha1 foo
    42   $ f --sha1 foo
    42   foo: sha1=f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
    43   foo: sha1=f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
       
    44 
       
    45   $ f --sha256 foo
       
    46   foo: sha256=b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c
    43 
    47 
    44 #if symlink
    48 #if symlink
    45   $ f foo --mode
    49   $ f foo --mode
    46   foo: mode=644
    50   foo: mode=644
    47 #endif
    51 #endif