![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with date command | netrom | Shell Programming and Scripting | 9 | 08-06-2008 02:37 AM |
| Help with a Date Command !!! | kumarsaravana_s | UNIX for Dummies Questions & Answers | 1 | 05-28-2007 04:33 PM |
| Date Command -1 | greengrass | UNIX for Dummies Questions & Answers | 4 | 01-24-2007 06:18 PM |
| date command | vshyam4949 | UNIX for Dummies Questions & Answers | 2 | 01-30-2006 11:40 AM |
| Date Command | saldana | UNIX for Dummies Questions & Answers | 2 | 02-05-2004 11:50 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
date command help
Hi,
I have the following date command for getting the below result: `date '+%m%d%y'` Result: 043008 Can someone help me make change in command so that i have the result as 04302008 Sorry that its a very easy for experts here , but i am a newbie. Please help Thanks, Sandeep |
|
||||
|
No, it is not.
%Y = four digit year %y = two digit year Sit down, open the man page for date. Scroll down until you hit the format section. There you will find how to change date output. This page is also important because other functions in languages like perl and C use the same format control. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|