11-04-2010
finding creation date of a file
Hi,
Can anyone tell me a process to find the creation date of a file in a directory.
If suppose I have a file in a directory created in 2009
-rw-r--r-- 1 xyz guest 2480 Jul 16 2009 sample.txt
The command should return the the file creation date as 16/07/2009
thanks,
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to capture a file's creation/modification date and time and convert this to a different format, whilst I can easily get the existing format from a ls -l | awk ' { print $......}' or a cut command I do not know how to convert it to a desired format?
I should add that at present the ls -l... (1 Reply)
Discussion started by: barney_clough
1 Replies
2. UNIX for Dummies Questions & Answers
Dear Expert,
Is there a command to do that in Unix?
In such a way that we don't need to actually "write" or
modified the content.
-- monkfan (4 Replies)
Discussion started by: monkfan
4 Replies
3. Shell Programming and Scripting
Hi All,
I need to get file creation date.
I have to access one file who's name is like...
abc.log092308
and the date changes as per current date. And i am accessing this file next day. meance in above case i will access above file on 09-24-2008
Also one problem is that this file... (2 Replies)
Discussion started by: Jeevan Salunke
2 Replies
4. Shell Programming and Scripting
Hi,
I just need to know way of getting date of file when it was created.
eg i have a file abc created on 23 aug. Now i need to know date of file i.e. 23 aug. How can i get that data.
Thanks
Sarbjit (7 Replies)
Discussion started by: sarbjit
7 Replies
5. OS X (Apple)
Is it possible to find all files based on the date of creation? And if so, how? I've been looking at the find command but it seems that only modification times are used as an option. (1 Reply)
Discussion started by: Straitsfan
1 Replies
6. Shell Programming and Scripting
Hi guys,
I had a scenario...
1. I had to get the previous days date in yyyymmdd format
2. i had to create a file with Date inthe format yyyymmdd.txt format
both are different
thanks guys in advance.. (4 Replies)
Discussion started by: apple2685
4 Replies
7. Shell Programming and Scripting
hi there
I have file names in different format as below
triss_20111117_fxcb.csv
triss_fxcb_20111117.csv
xpnl_hypo_reu_miplvdone_11172011.csv
xpnl_hypo_reu_miplvdone_11-17-2011.csv
xpnl_hypo_reu_miplvdone_20111117.csv
xpnl_hypo_reu_miplvdone_20111117xfb.csv... (10 Replies)
Discussion started by: manas_ranjan
10 Replies
8. UNIX for Advanced & Expert Users
Hi ,
I have a requirement to append file creation date to each row in a file for all the files in a directory.
Please help
Thanks,
Pavan (2 Replies)
Discussion started by: Pavan Ram B S
2 Replies
9. UNIX for Dummies Questions & Answers
Dear Masters,
I am using solaris 10. There is a requirement if a file created on Feb 1 or Feb 2, the creation date will be changed to Jan 31. Is there any command on Solaris to do that?
Thanks,
Kris (1 Reply)
Discussion started by: kris.adrianto
1 Replies
10. Shell Programming and Scripting
Hello ,
I am looking for a script to print file name and its last updated time.
FILE CREATION-TIME FILE-NAME
24/10/2017 12:34 TDR-IU-8-2017.10.24.07:40:00-2017.10.24.07:45:00
when we run l command it print the directory and the files with details like permission,... (1 Reply)
Discussion started by: sadique.manzar
1 Replies
LEARN ABOUT SUSE
active.times
ACTIVE.TIMES(5) InterNetNews Documentation ACTIVE.TIMES(5)
NAME
active.times - List of local creation times of newsgroups
DESCRIPTION
The file pathdb/active.times provides a chronological record of when newsgroups were created on the local server. This file is normally
updated by mod-active and innd whenever a newgroup control message is processed or a "ctlinnd newgroup" command is issued, and is used by
nnrpd to answer NEWGROUPS requests.
Each line consists of three fields:
<name> <time> <creator>
The first field is the name of the newsgroup. The second field is the time it was created, expressed as the number of seconds since the
epoch. The third field is plain text intended to describe the entity that created the newsgroup. This field is encoded in UTF-8 and is
usually the e-mail address of the person who created the group, as specified in the control message or on the ctlinnd command line, or the
newsmaster specified at configure time if no creator argument was given to ctlinnd (by default, it is "usenet").
You can get the active.times file of another NNTP server with getlist(1).
EXAMPLE
The line:
news.admin.moderation 1175716803 <group-admin@isc.org>
shows that the newsgroup news.admin.moderation was created on April 4th, 2007, at 20:00:03 UTC. This date can be obtained for instance
with "convdate -c 1175716803" (convdate(1) is shipped with INN) or "date -u -d "Jan 1, 1970 00:00:00 +0000 + 1175716803 seconds"". It is
when the newsgroup was locally created; in this example, it is when a control message sent by "group-admin@isc.org" was received and
processed by the news server (see control.ctl(5) for more details). Therefore, the time is not necessarily the same on every news server.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Converted to POD by Russ Allbery <rra@stanford.edu>.
$Id: active.times.pod 8638 2009-09-28 19:59:48Z iulius $
SEE ALSO
active(5), convdate(1), ctlinnd(8), getlist(1), inn.conf(5), innd(8), mod-active(8), nnrpd(8).
INN 2.5.2 2009-09-29 ACTIVE.TIMES(5)