github.com/cellofellow/gopkg@v0.0.0-20140722061823-eec0544a62ad/apps/md5/usage.go (about) 1 // Copyright 2013 <chaishushan{AT}gmail.com>. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 var _ = ` 8 md5sum --help 9 Usage: md5sum [OPTION] [FILE]... 10 Print or check MD5 (128-bit) checksums. 11 With no FILE, or when FILE is -, read standard input. 12 13 -b, --binary read in binary mode (default unless reading tty stdin) 14 15 -c, --check read MD5 sums from the FILEs and check them 16 -t, --text read in text mode (default if reading tty stdin) 17 18 The following two options are useful only when verifying checksums: 19 --status don't output anything, status code shows success 20 -w, --warn warn about improperly formatted checksum lines 21 22 --help display this help and exit 23 --version output version information and exit 24 25 The sums are computed as described in RFC 1321. When checking, the input 26 should be a former output of this program. The default mode is to print 27 a line with checksum, a character indicating type ('*' for binary, ' ' for 28 text), and name for each FILE. 29 30 Report bugs to <bug-coreutils@gnu.org>. 31 ` 32 33 var _ = ` 34 md5sum -h 35 md5sum: invalid option -- h 36 Try 'md5sum --help' for more information. 37 ` 38 39 var _ = ` 40 md5sum * 41 00000000000000000000000000000000 *a.go 42 00000000000000000000000000000000 *b.go 43 00000000000000000000000000000000 *c.go 44 ` 45 46 // stdin 47 var _ = ` 48 md5sum 49 00000000000000000000000000000000 *- 50 `