Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Shell Script to Find All New Files Added

scmuser created the topic: shell script to find all new files added

Hi,

i am looking for a shell script to find all new files added or modified after a certain date & Time??

Any help?

mnanjala replied the topic: Re:shell script to find all new files added
This should solve the problem

find . -type f -mtime -7 -print

Here,
* -mmin n (modification time in minutes)
* -mtime n (modification time in days)
* -newer file (modification time newer than modification time of file)
* -daystart (adjust start time from current time to start of day)
* Plus alternatives for access time and ‘change’ or ‘create’ time.

Or thinkikng

touch can be used

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x