By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,761 Members | 950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,761 IT Pros & Developers. It's quick & easy.

how to get the same format for date in the ls command in hp UNIX

100+
P: 154
Hi when i run the unix command ls -l

I get a listing of folders but the formats are different and i need it to be 1 standard if possible please.

here is an example
drwxr-x--- 3 test test 8192 May 1 2007 monitor_scripts
drwxrwxr-x 12 test test 8192 Jul 11 2006 mozilla
drwxrwxr-x 6 test test 8192 Jun 29 2006 oraInventory
drwxrwx--- 3 test test 96 Jun 29 2006 oracle
-rw-r----- 1 test test 3259 Nov 1 09:36 sort_script.pl

so i need the time removed and to have all records to be a date.

Could somebody help me on how i could get 1 standard date format please.
Nov 1 '07 #1
Share this Question
Share on Google+
2 Replies

numberwhun
Expert Mod 2.5K+
P: 3,503
Hi when i run the unix command ls -l

I get a listing of folders but the formats are different and i need it to be 1 standard if possible please.

here is an example
drwxr-x--- 3 test test 8192 May 1 2007 monitor_scripts
drwxrwxr-x 12 test test 8192 Jul 11 2006 mozilla
drwxrwxr-x 6 test test 8192 Jun 29 2006 oraInventory
drwxrwx--- 3 test test 96 Jun 29 2006 oracle
-rw-r----- 1 test test 3259 Nov 1 09:36 sort_script.pl

so i need the time removed and to have all records to be a date.

Could somebody help me on how i could get 1 standard date format please.
That is just the way that the Unix date format is presented. If the date is (I think) withing a month, then it just puts the Month and day. Older than that and you get Month Day Year.

Regards,

Jeff
Nov 1 '07 #2

100+
P: 154
ok Thank you .................................................. ........

That is just the way that the Unix date format is presented. If the date is (I think) withing a month, then it just puts the Month and day. Older than that and you get Month Day Year.

Regards,

Jeff
Nov 1 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.