{"id":2001,"date":"2023-09-12T11:01:09","date_gmt":"2023-09-12T15:01:09","guid":{"rendered":"http:\/\/www.insidethe.com\/blog\/?p=2001"},"modified":"2023-09-12T11:01:09","modified_gmt":"2023-09-12T15:01:09","slug":"shell-command-to-recursively-find-most-recently-modified-files","status":"publish","type":"post","link":"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/","title":{"rendered":"Shell Command To Recursively Find Most Recently Modified Files"},"content":{"rendered":"<p><code style=\"font-weight: inherit; font-style: inherit; color: var(--black-800);\">find\u00a0. -type f -exec stat --format '%Y :%y %n' \"{}\" \\; | sort -nr | cut -d: -f2- | head<\/code><\/p>\n<p>Adapted from\u00a0https:\/\/stackoverflow.com\/questions\/5566310\/how-to-recursively-find-and-list-the-latest-modified-files-in-a-directory-with-s<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>find\u00a0. -type f -exec stat &#8211;format &#8216;%Y :%y %n&#8217; &#8220;{}&#8221; \\; | sort -nr | cut -d: -f2- | head Adapted from\u00a0https:\/\/stackoverflow.com\/questions\/5566310\/how-to-recursively-find-and-list-the-latest-modified-files-in-a-directory-with-s &nbsp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[40],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Shell Command To Recursively Find Most Recently Modified Files - Insidethe.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shell Command To Recursively Find Most Recently Modified Files - Insidethe.com\" \/>\n<meta property=\"og:description\" content=\"find\u00a0. -type f -exec stat --format &#039;%Y :%y %n&#039; &quot;{}&quot; ; | sort -nr | cut -d: -f2- | head Adapted from\u00a0https:\/\/stackoverflow.com\/questions\/5566310\/how-to-recursively-find-and-list-the-latest-modified-files-in-a-directory-with-s &nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/\" \/>\n<meta property=\"og:site_name\" content=\"Insidethe.com\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-12T15:01:09+00:00\" \/>\n<meta name=\"author\" content=\"Jared\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jared\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/\",\"url\":\"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/\",\"name\":\"Shell Command To Recursively Find Most Recently Modified Files - Insidethe.com\",\"isPartOf\":{\"@id\":\"https:\/\/insidethe.com\/blog\/#website\"},\"datePublished\":\"2023-09-12T15:01:09+00:00\",\"dateModified\":\"2023-09-12T15:01:09+00:00\",\"author\":{\"@id\":\"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99\"},\"breadcrumb\":{\"@id\":\"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/insidethe.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shell Command To Recursively Find Most Recently Modified Files\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/insidethe.com\/blog\/#website\",\"url\":\"https:\/\/insidethe.com\/blog\/\",\"name\":\"Insidethe.com\",\"description\":\"It is my space, but better than myspace\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/insidethe.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99\",\"name\":\"Jared\",\"sameAs\":[\"https:\/\/www.insidethe.com\/blog\"],\"url\":\"https:\/\/insidethe.com\/blog\/author\/jared\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Shell Command To Recursively Find Most Recently Modified Files - Insidethe.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/","og_locale":"en_US","og_type":"article","og_title":"Shell Command To Recursively Find Most Recently Modified Files - Insidethe.com","og_description":"find\u00a0. -type f -exec stat --format '%Y :%y %n' \"{}\" ; | sort -nr | cut -d: -f2- | head Adapted from\u00a0https:\/\/stackoverflow.com\/questions\/5566310\/how-to-recursively-find-and-list-the-latest-modified-files-in-a-directory-with-s &nbsp;","og_url":"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/","og_site_name":"Insidethe.com","article_published_time":"2023-09-12T15:01:09+00:00","author":"Jared","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jared"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/","url":"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/","name":"Shell Command To Recursively Find Most Recently Modified Files - Insidethe.com","isPartOf":{"@id":"https:\/\/insidethe.com\/blog\/#website"},"datePublished":"2023-09-12T15:01:09+00:00","dateModified":"2023-09-12T15:01:09+00:00","author":{"@id":"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99"},"breadcrumb":{"@id":"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/insidethe.com\/blog\/2023\/09\/shell-command-to-recursively-find-most-recently-modified-files\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/insidethe.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Shell Command To Recursively Find Most Recently Modified Files"}]},{"@type":"WebSite","@id":"https:\/\/insidethe.com\/blog\/#website","url":"https:\/\/insidethe.com\/blog\/","name":"Insidethe.com","description":"It is my space, but better than myspace","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/insidethe.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99","name":"Jared","sameAs":["https:\/\/www.insidethe.com\/blog"],"url":"https:\/\/insidethe.com\/blog\/author\/jared\/"}]}},"_links":{"self":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/2001"}],"collection":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/comments?post=2001"}],"version-history":[{"count":1,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/2001\/revisions"}],"predecessor-version":[{"id":2002,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/2001\/revisions\/2002"}],"wp:attachment":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/media?parent=2001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/categories?post=2001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/tags?post=2001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}