![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl: Extracting date from file name and comparing with current date | MKNENI | Shell Programming and Scripting | 4 | 03-26-2008 12:01 PM |
| calculate the date of next satureday of current date. | rinku | Shell Programming and Scripting | 1 | 02-27-2008 04:40 PM |
| Get date and time for past 1 hour from current date | spch2o | Shell Programming and Scripting | 4 | 12-21-2007 05:55 AM |
| File date vs Current date | trexlim | Shell Programming and Scripting | 4 | 05-04-2007 06:35 PM |
| I want to get day from the current system date | gopskrish | UNIX for Dummies Questions & Answers | 2 | 06-24-2005 06:52 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
get current system date
How do I create a shell script that would get the current system date in format of yyyymmdd and use that result to concatenate it to a filename that it would look like this: sample20051024.dat
Code:
example -------- current system date: 24-Oct-2005 filename: sample.dat when the shell script run it now becomes sample20051024.dat |
| Forum Sponsor | ||
|
|
|
|||
|
Did you check the FAQ section? I believe this has been answered there.
http://www.unix.com/answers-frequently-asked-questions/ |