1SHTOOL-MDATE.TMP(1)         GNU Portable Shell Tool        SHTOOL-MDATE.TMP(1)
2
3
4

NAME

6       shtool mdate - GNU shtool pretty-print last modification time
7

SYNOPSIS

9       shtool mdate [-n|--newline] [-z|--zero] [-s|--shorten] [-d|--digits]
10       [-f|--field-sep str] [-o|--order spec] path
11

DESCRIPTION

13       This command pretty-prints the last modification time of a given file
14       or directory path, while still allowing one to specify the format of
15       the date to display.
16

OPTIONS

18       The following command line options are available.
19
20       -n, --newline
21           By default, output is written to stdout followed by a "newline"
22           (ASCII character 0x0a). If option -n is used, this newline
23           character is omitted.
24
25       -z, --zero
26           Pads numeric day and numeric month with a leading zero. Default is
27           to have variable width.
28
29       -s, --shorten
30           Shortens the name of the month to a english three character
31           abbreviation. Default is full english name. This option is silently
32           ignored when combined with -d.
33
34       -d, --digits
35           Use digits for month. Default is to use a english name.
36
37       -f, --field-sep str
38           Field separator string between the day month year tripple. Default
39           is a single space character.
40
41       -o, --order spec
42           Specifies order of the day month year elements within the tripple.
43           Each element represented as a single character out of ``"d"'',
44           ``"m"'' and ``"y"''. The default for spec is ``"dmy"''.
45

EXAMPLE

47        #   shell script
48        shtool mdate -n /
49        shtool mdate -f '/' -z -d -o ymd foo.txt
50        shtool mdate -f '-' -s foo.txt
51

HISTORY

53       The GNU shtool mdate command was originally written by Ulrich Drepper
54       in 1995 and revised by Ralf S. Engelschall <rse@engelschall.com> in
55       1998 for inclusion into GNU shtool.
56

SEE ALSO

58       shtool(1), date(1), ls(1).
59

POD ERRORS

61       Hey! The above document had some coding errors, which are explained
62       below:
63
64       Around line 222:
65           You forgot a '=back' before '=head1'
66
67
68
6918-Jul-2008                      shtool 2.0.8              SHTOOL-MDATE.TMP(1)
Impressum