{"id":9838,"date":"2018-07-23T17:37:02","date_gmt":"2018-07-23T15:37:02","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=9838"},"modified":"2018-07-23T17:37:02","modified_gmt":"2018-07-23T15:37:02","slug":"gnu-find","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2018\/07\/23\/gnu-find\/","title":{"rendered":"GNU\u00a0find &#8211; search for files in a directory hierarchy"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/manpages.debian.org\/unstable\/findutils\/find.1.en.html\">https:\/\/manpages.debian.org\/unstable\/findutils\/find.1.en.html<\/a><\/li>\n<\/ul>\n<p>print each file&#8217;s\u00a0<em>last modification time<\/em> (%T+) and its name (%P):<\/p>\n<pre>$ find . -type f -printf '%T+ %P\\n'<\/pre>\n<p>Because the time stamp is printed first and also in a suitable way, this is what we use to sort the files within a directory by their <em>last modification time<\/em>.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/manpages.debian.org\/unstable\/findutils\/find.1.en.html print each file&#8217;s\u00a0last modification time (%T+) and its name (%P): $ find . -type f -printf &#8216;%T+ %P\\n&#8217; Because the time stamp is printed first and also in a suitable way, this is what we use to sort the files within a directory by their last modification time.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"link","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[171,671],"tags":[],"class_list":["post-9838","post","type-post","status-publish","format-link","hentry","category-gnu","category-unix","post_format-post-format-link"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-2yG","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/9838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=9838"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/9838\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=9838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=9838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=9838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}