David H wrote:
> anyone home?
>
> to help lowly newbies with the "date" command in bash.
>
> please include 1 example that shows the '+' character in front of the format
> string. It winds up taking a lot of looking to figure out this simple
> syntax.
I ran "info coreutils date" (because "man date" suggests it),
then searched for "date \+". Here are two:
$ date +'%Y-%m-%d %H:%M:%S %z' # %z is a GNU extension.
2004-02-29 16:21:42 -0800
$ date +'@%s.%N' # %s and %N are GNU extensions.
@1078100502.692722128