05-29-2009
File created year
Hi
I need to get the File creation date (MM,DD,YYYY)
using ls -ltr am getting only Month and Day only, I need year also when the file is modified.
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello guys,
I want to extract year of file creation. Is there a direct way to get that information.
"ls -l" do give required information but if the file created is not older then 6 months it will not display the year. To get year one possible way will be do a math with date extracted by ls.
... (2 Replies)
Discussion started by: RishiPahuja
2 Replies
2. UNIX for Dummies Questions & Answers
How do I know the year of creation of a file modified less than 6 months from now. Since I "know" that the file has been created
in 2004 since ls -l does not show the year of its creation but can I get the same information through a command etc.
From the ls man page:
Am I clear enough??
... (6 Replies)
Discussion started by: encrypted
6 Replies
3. Shell Programming and Scripting
When i use, 'ls -ltr' I only see the month and day (timestamp) of the file.
How do i see the year also.
Thanks and Regards,
Ram (1 Reply)
Discussion started by: ramky79
1 Replies
4. Shell Programming and Scripting
Hello experts,
I have a directory which the files inside have different date.
Now I'd like to move them to folder year/mouth (2007/01 , 2007/02)
Have any suggestion?
thanks in advance for reading or anyposts. (3 Replies)
Discussion started by: mmm951
3 Replies
5. AIX
Hi
I am facing strange issue in one direcotry it is not showing year of file,
can you please suggest me wheather there is any limitation on year,
on some other file though it is showing the dates.
Regards,
Manoj. (1 Reply)
Discussion started by: manoj.solaris
1 Replies
6. Shell Programming and Scripting
Hi
I have files like
abc_cd_20110302_123423
abc_cd_ef_20110301_123423
abc_cd_ef_20110403_123423
abc_ef_20110401_123423
I want to extract the
the year and month associated with each file.
I tried
logfileyearmonth=`echo $logfile | awk -F_'{print $NF}'`
Any other way can I... (6 Replies)
Discussion started by: dgmm
6 Replies
7. UNIX for Dummies Questions & Answers
Hello,
It's a shame to not be able to do what I need, but I am sure you will :
Here is what I have in my log file :
New File: 95106 Jun 6 48 TAG__KSO__2012092_0.TAB
New File: 95106 Mar 26 48 TAG__KSM__2012020_0.TAB
New File: 95106 Mar 26 48 TAG__KSO__2012020_0.TAB
New File: 95106 May... (3 Replies)
Discussion started by: Aswex
3 Replies
8. UNIX for Dummies Questions & Answers
Hi Gurus,
I need to get year part of file created date. when using
ls -l , it only show month, day and time.
is there any option I can add to get year portition?
Thanks in advance (7 Replies)
Discussion started by: ken6503
7 Replies
9. Shell Programming and Scripting
HI
I am using below script to remove only last year files and also need deleted files i want to keep in log file or history for future reference
But it is giving wrong output please help or let me any other way for example 2016 if am using this command it is removing 2016 and 2017 files also... (2 Replies)
Discussion started by: Kalia
2 Replies
10. UNIX for Beginners Questions & Answers
I have more than 200K files created in year 2017 under directory having size of 50GB.
I want to all these files in one shot.
Is there any faster option available with find command to delete all these file ? (6 Replies)
Discussion started by: sp23029
6 Replies
LEARN ABOUT OPENSOLARIS
holidays
holidays(4) File Formats holidays(4)
NAME
holidays - prime/nonprime table for the accounting system
SYNOPSIS
/etc/acct/holidays
DESCRIPTION
The /etc/acct/holidays file specifies prime time hours and holidays. Holidays and weekends are considered non-prime time hours.
/etc/acct/holidays is used by the accounting system.
All lines beginning with an * are comments.
The /etc/acct/holidays file consists of two sections. The first non-comment line defines the current year and the start time of prime and
non-prime time hours, in the form of:
current_year prime_start non_prime_start
Specify prime_start and non_prime_start times in the range of 0000 to 2400.
The remaining non-comment lines define the holidays in the form of:
month/day company_holiday
Of these two fields, only the month/day is actually used by the accounting system programs.
The /etc/acct/holidays file must be updated every year.
EXAMPLES
Example 1 An Example of the /etc/acct/holidays File
The following is an example of the /etc/acct/holidays file:
* Prime/Nonprime Table for the accounting system
*
* Curr Prime Non-Prime
* Year Start Start
*
1991 0830 1800
*
* only the first column (month/day) is significant.
*
* month/day Company Holiday
*
1/1 New Years Day
5/30 Memorial Day
7/4 Indep. Day
9/5 Labor Day
11/24 Thanksgiving Day
11/25 day after Thanksgiving
12/25 Christmas
12/26 day after Christmas
SEE ALSO
acct(1M)
SunOS 5.11 18 Aug 2008 holidays(4)