473,396 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

154 100+
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
2 3208
numberwhun
3,509 Expert Mod 2GB
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
jonathan184
154 100+
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

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

Similar topics

11
by: Rick | last post by:
I am going crazy on how to format a simple date. I have this in my MySQL table. "2005-03-10 08:44:21" and I want it to format out like "3/10/2005" or "03/10/05" but I seem to be going at it the...
2
by: Tatiana Zadiraka | last post by:
I use DB2 8.1 with FixPack 5. In command line for sql I get all DATE columns only in MM-DD-YYYY format. Of course, DATE('20-12-2003') gives me an error SQL0181N The string representation of a...
6
by: Dario Di Bella | last post by:
Hi all, we have the following urgent issue affecting our development team. Initially we had one particular workstation that failed executing queries on a DB2 database, raising an invalid date...
5
by: Jean-Marc Blaise | last post by:
Dear all, I have a table that contains a DATE in char(10) format. This table is LOADed. I put a check constraint on the column, some kind of CHECK (DATE(F) <= DATE('9999-12-31')) and I would...
4
by: The Spoon | last post by:
I am looking for functions that can be used to automatically update the system date and time on an NT based system, resulting from manually entered date and time values input by an operator via a...
4
by: hph | last post by:
Okay, another trivial matter that I can't solve. I have a variable - $lastdate - that is the latest date any record in a MySQL database was updated. Its MySQL format is TIMESTAMP. If I say I...
12
by: Rob Meade | last post by:
Hi all, Ok - I've come from a 1.1 background - and previously I've never had any problem with doing this: Response.Write (Session("MyDate").ToString("dd/MM/yyyy")) So, I might get this for...
6
by: marc | last post by:
hi im trying to convert Date() into a unix timestamp so i can stick the result into a mysql db, please help!
3
by: samuraisam | last post by:
FTP LST/LIST/NLST date field formatting function for all those seekers out there... import time import datetime def ftpdateformat(value): """Formats dates from most FTP servers""" if ":" in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.