Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Find Year Date and Time of File
Name: ahteck Date: June 25, 2003 at 03:00:47 Pacific OS: AIX UNIX CPU/Ram: 512
Comment:
Hi,
I need to find all *.model file and display the time in MMddhhmmyy.
I used the find . –name “*.model” –ls to search but the file before year 2003 only displayed with date and year and no time (ie hhmm). Where is the time (hr and min.) for all file before 2003?
The file like like this;
Jul 29 2002 /tmp/Template/DRAFTINGTEMPLATE.model Jul 29 2002 /tmp/Template/draftingtemplate.model May 9 14:18 /tmp/piston.model Jun 10 17:25 /tmp/sam/DRAFTINGTEMPLATE.model Jun 10 17:24 /tmp/DRAFTINGTEMPLATE.model Jun 11 10:58 /tmp/test1.model
I can't see it in the man pages right now but I'm sure I read somewhere that hour/minute/second is displayed instead of the year for files newer than six months old. Today's date being 25th June, you would therefore not see the year displayed for any files newer than 25th December 2002.
Summary: Hi. How do I adjust the date and time of my server? I type this. www3# date 0207021627 date: settimeofday: elevated security level: Operation not permitted www3# I am logged in as root. Thanks. ...
Summary: Hi guys, I badly need help. I need to get the date and time a specific file has last been modified. This can be a Unix command or an Awk command. Please help me, I'm going nuts over here. Thanks a lot...
Summary: Hi I am trying to write a script to check the log files for the trancactions based on usr input date and user input user id. I will take the user input userid and user input date and check there are ...