- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- listing date and time stamp always
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
12-05-2000 11:36 AM
12-05-2000 11:36 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 12:08 PM
12-05-2000 12:08 PM
Re: listing date and time stamp always
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 12:35 PM
12-05-2000 12:35 PM
SolutionThere's no option of 'ls' to expose the full timestamp. You can expose the modification time, however, by creating a shell archive package (see man 'shar') with 'shar -m' for a file(s) in question and then 'grep' the archive for "touch -m". For example:
# shar -m old_file > /tmp/old_file.shar
# grep /tmp/old_file.shar 'touch -m'
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 01:23 PM
12-05-2000 01:23 PM
Re: listing date and time stamp always
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 01:31 PM
12-05-2000 01:31 PM
Re: listing date and time stamp always
Here is the ouptut from the script I wrote based on the shar command.
SEP 12 1900 14:49 vax_to_unix/s_sumprddy.sas
SEP 12 1900 14:49 vax_to_unix/s_sumreldy.sas
SEP 12 1900 14:49 vax_to_unix/spidlist.sas
SEP 12 1900 14:49 vax_to_unix/sprdlist.sas
Now all I have to do is figure out how to assign points.
I think I have attached the script if any one wants it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 01:56 PM
12-05-2000 01:56 PM
Re: listing date and time stamp always
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 05:03 PM
12-05-2000 05:03 PM
Re: listing date and time stamp always
I would be remiss if I didn't point out that there is a "super ls" available from the porting archive. It's man page notes that, "sls is a program designed to overcome the limitations of the standard UNIX ls(1) program, providing a more consistent interface to file inode information. It is particularly designed for use by shell scripts...". I think this is exactly what you want.
http://hpux.cs.utah.edu/hppd/hpux/Shells/sls-1.0/man.html
...JRF...