[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [bash] sostituzione di lista...



> la stringa che estrapolo con grep è la seguente:
>
> Timestamp: Sun Oct 11 17:06:14 2009

> date mi consente di modificare il formato di una data passatagli come
stringa?

Ad esempio...
$ date --date="Sun Oct 11 17:06:14 2009" +"%Y-%m-%d %H:%M:%S"
2009-10-11 17:06:14

> non ho trovato nulla nel man a riguardo e neppure su google...

$ man date
[...]
SYNOPSIS
       date [OPTION]... [+FORMAT]
[...]
       -d, --date=STRING
              display time described by STRING, not `now'
[...]
       FORMAT controls the output.  Interpreted sequences are:
[...]

Io direi che c'e` tutto...

Buon anno a tutti!
Marco

-- 
http://bodrato.it/papers/



-- 
http://bodrato.it/

-- 
http://bodrato.it/


Reply to: