- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- date showing "0" from 1 to 9 (01-09)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2006 04:58 AM
06-02-2006 04:58 AM
i want see Jun 02 instead of Jun (space)2
Thanks .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2006 05:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2006 05:12 AM
06-02-2006 05:12 AM
Re: date showing "0" from 1 to 9 (01-09)
As I noted, yesterday:
# date '+%b %e'
...gives space-filled days (and):
# date '+%b %d'
...gives zero-filled days.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2006 06:34 AM
06-02-2006 06:34 AM
Re: date showing "0" from 1 to 9 (01-09)
There are no options in the "ls" command that will allow for this.
Are you storing this in a variable, grep'ing for it, or ?
Can't really help without some additional info?
Perhaps you could describe what it is you want your script to accomplish? Lots of different ways to get the same thing done in the unix world, and somebody has probably already written something close that they would be willing to share.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2006 06:59 AM
06-02-2006 06:59 AM
Re: date showing "0" from 1 to 9 (01-09)
--time-style=STYLE with -l, show times using style STYLE:
full-iso, long-iso, iso, locale, +FORMAT.
FORMAT is interpreted like `date'; if FORMAT is
FORMAT1
non-recent files and FORMAT2 to recent files;
if STYLE is prefixed with `posix-', STYLE
takes effect only outside the POSIX locale
lt09:/tmp 111 > ls -l --time-style=+'%Y %b %e' te*
-rw-rw-rw- 1 merijn users 107 2006 Jan 29 test.c
-rwxr-xr-x 1 merijn users 192 2006 May 2 test.pl
-rwxr-xr-x 1 merijn users 332 2005 Nov 8 test.sh
lt09:/tmp 112 > ls -l --time-style=+'%Y %b %d' te*
-rw-rw-rw- 1 merijn users 107 2006 Jan 29 test.c
-rwxr-xr-x 1 merijn users 192 2006 May 02 test.pl
-rwxr-xr-x 1 merijn users 332 2005 Nov 08 test.sh
lt09:/tmp 113 >
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2006 07:01 AM
06-02-2006 07:01 AM