Creation date - take that with a grain of salt. A file will have the creation date (if you want to call it that) if the file has never been modified. Example, create a file with something in it. Now, leave that file alone for some time. Somebody else will do 'ls -lart' and see a date/time stamp. To that somebody else that is the modified time. You created the file and you know when, so you know that is also the create date.
Something I did notice a couple of weeks ago. I am running Ubuntu 12.04 on my desktop which has a newer version of the 'stat' command. In the output of the stat command is a field called 'Birth Date:' Hmmm, could this be?
In my mind, the date/time stamp on a file is the modified time. This is the date/time stamp you will see associated with a file when you do 'ls -la'. It is this date/time stamp that is sorted when you run the 'ls -lart' command.
Here is something that may be useful with your task.
Show files which are modified after the specified file. The following find command displays all the files that are created/modified after ordinary_file.
Note the 'ls -lrt' : the files (and dirs if there are any) are being sorted by date/time, Oldest to youngest.
Quote:
.
./everybody_read
./all_for_all
./no_for_all
Looks like you're using a combination of proposed solutions. Good job!
---------- Post updated at 06:20 PM ---------- Previous update was at 06:14 PM ----------
Creation date - take that with a grain of salt. A file will have the creation date (if you want to call it that) if the file has never been modified. Example, create a file with something in it. Now, leave that file alone for some time. Somebody else will do 'ls -lart' and see a date/time stamp. To that somebody else that is the modified time. You created the file and you know when, so you know that is also the create date.
Something I did notice a couple of weeks ago. I am running Ubuntu 12.04 on my desktop which has a newer version of the 'stat' command. In the output of the stat command is a field called 'Birth Date:' Hmmm, could this be?
In my mind, the date/time stamp on a file is the modified time. This is the date/time stamp you will see associated with a file when you do 'ls -la'. It is this date/time stamp that is sorted when you run the 'ls -lart' command.
Here is something that may be useful with your task.
Show files which are modified after the specified file. The following find command displays all the files that are created/modified after ordinary_file.
Hi, there are some servers here at work which issue a Safeword challenge after I login. Can anyone tell me exactly how the challenge/response system works? In particular, how are the valid keys decided? (2 Replies)
Hi Gurus,
I am a starter in ksh scripting
I have a requirment where i need to ucertain that each line contain only 5 occurances of "," (comma) in a CSV file ; I don't want to use perl,is it possible in ksh;; Kindly help
I am going to read CSV file and ; redirect all those lines which are... (3 Replies)
I have the following text
Microsoft iSCSI Initiator version 2.0 Build 3497
Targets List:
iqn.2001-05.com.equallogic:0-8a0906-daef43402-138000002a4477ba-grsrv12-extra
iqn.2001-05.com.equallogic:0-8a0906-986f43402-520000002b447951-exchange
... (9 Replies)
Hi all,
Thanks in advanced.
This question really bothered me much. What i want is to replace any times of repeated 'TB' to 'T', below is example.
It can be fullfil by AWK and perl, but my desire is using SED to realize it.
So here means we treat TB as a whole part, which means 's/TB*/T/'... (4 Replies)
I have a web xml file that looks like this:
<allinfo>
<info>
<a>Name1<\a>
<b>address1<\b>
<c>phone1<c>
<\info>
<info>
<a>Name2<\a>
<b>address2<\b>
<c>phone2<c>
<\info>
<\allinfo>
I want to use sed to... (2 Replies)
Here's a regex substitution operation that has stumped me with sed:
How do you convert lines like this:
first.key ?{x.y.z}
second.key ?{xa.ys.zz.s}
third.key ?{xa.k}
to:
first.key ?{x_y_z}
second.key ?{xa_ys_zz_s}
third.key ?{xa_k}
So i'm basically converting all the... (11 Replies)
Default shell is /usr/bin/zsh
Script will be running #!/bin/bash
Need to pull information from database while using other scripts already made (not by me).
Ok, so i need a script pulling certain information about a customer's router interfaces.
I am using a ROUTER-DNS-NAME as variable $1
I... (3 Replies)
I have a folder with many subdirectories and i need to set the modified date to today for everything in it. Please help, thanks!
I tried something i found online, find . -print0 | xargs -r0 touch
but I got the error: xargs: illegal option -- r (5 Replies)
Ok then i Have a challenge for you :
Give me PS1 so that it always display the least 2 levels of directory
(except if i am above of course)
I want it this way :
so if i go to
/
/home/
/home/user
/home/user/whatever
/home/user/whatever1/whatever2
my PS1 should respectively... (12 Replies)
I have searched through google, and this forum to try and find the answer, but alas, nothing quite hits the whole answer.
I am trying to read the last line (or lines) of some log files. I do this often.
The files are named sequentially, using the date as part of the file name, and appending... (18 Replies)