|
||||||
| Shell Scripts Post your shell script and what it does here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I just spent 30 minutes finding this information so I thought I would post it. If you need the date and time in a shell script with YYYYMMDD format and HHMM format here is the script commands:
Code:
TIME=$(date +%k%M) DAY=`/bin/date +%Y%m%d` Code:
1305 20080818 Last edited by Tor; 08-18-2008 at 06:24 PM. |
| Sponsored Links |
![]() |
| Tags |
| date, time |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Log a script contents | Hektor | Linux Programming and Scripting | 3 | 11-18-2008 02:31 PM |
| What shell do you use? | Aereshaa | Linux General | 7 | 07-28-2008 06:29 PM |
| Using colors in Shell Script | ptt3 | Linux Programming and Scripting | 1 | 04-03-2008 12:50 PM |
| FTP Script | ptt3 | Linux Programming and Scripting | 1 | 04-02-2008 06:54 PM |
| Your First Date With Vbespy | kernel | Linux News | 0 | 08-13-2007 10:46 AM |