{"id":2373,"date":"2017-12-08T08:14:50","date_gmt":"2017-12-08T08:14:50","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2373"},"modified":"2020-01-09T10:01:58","modified_gmt":"2020-01-09T10:01:58","slug":"shell-script-to-find-all-new-files-added","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/shell-script-to-find-all-new-files-added\/","title":{"rendered":"Shell Script to Find All New Files Added"},"content":{"rendered":"<p><strong>scmuser created the topic: shell script to find all new files added<\/strong><\/p>\n<p>Hi,<\/p>\n<p>i am looking for a shell script to find all new files added or modified after a certain date &#038; Time??<\/p>\n<p>Any help?<\/p>\n<p><strong>mnanjala replied the topic: Re:shell script to find all new files added<\/strong><br \/>\nThis should solve the problem<\/p>\n<p>find . -type f -mtime -7 -print<\/p>\n<p>Here,<br \/>\n* -mmin n (modification time in minutes)<br \/>\n* -mtime n (modification time in days)<br \/>\n* -newer file (modification time newer than modification time of file)<br \/>\n* -daystart (adjust start time from current time to start of day)<br \/>\n* Plus alternatives for access time and &#8216;change&#8217; or &#8216;create&#8217; time.<\/p>\n<p>Or thinkikng<\/p>\n<p>touch can be used<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#038; Time?? Any help? mnanjala replied the topic: Re:shell script to find all new files added This should solve the problem find &#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[454],"tags":[138],"class_list":["post-2373","post","type-post","status-publish","format-standard","hentry","category-shell-script","tag-shell"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2373"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2373\/revisions"}],"predecessor-version":[{"id":2374,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2373\/revisions\/2374"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}